Skip to content
Browse files

beginnings of a UI for interfacing with Lightroom to perform the corr…

…ection
  • Loading branch information...
1 parent 0dc4c89 commit 6080d114701968d5c178da3cc66d637e5848c383 @conch committed Apr 22, 2012
Showing with 25,883 additions and 0 deletions.
  1. +37 −0 disco.py
  2. +25,846 −0 discoball.ai
  3. BIN discoball.gif
View
37 disco.py
@@ -0,0 +1,37 @@
+from Tkinter import *
+import tkFileDialog
+import sqlite3
+
+class Disco:
+ def __init__(self, master):
+ frame = Frame(master)
+ frame.pack()
+
+ img = PhotoImage(file="discoball.gif")
+ title = Label(frame, image=img)
+ title.img = img
+ title.grid(row=0, columnspan=2)
+ self.filename = StringVar()
+ self.filename.set("No file selected")
+ Label(frame, textvariable=self.filename).grid(row=1, column=0)
+ Button(frame, text="Choose File ", command=self.get_lightroom_catalog_filename).grid(row=1, column=1)
+ Button(frame, text="Perform Correction in Adobe Lightroom", command=self.perform_correction).grid(row=2)
+ Button(frame, text="QUIT", command=frame.quit).grid(row=3)
+
+ def get_lightroom_catalog_filename(self):
+ self.filename.set(tkFileDialog.askopenfilename(filetypes=[("Adobe Lightroom Catalog Files", ".lrcat")]))
+
+ # this writes to Lightroom's SQLite database and sets the value for Vertical perspective correction
+ def perform_correction(self):
+ conn = sqlite3.connect(self.filename.get())
+ db = conn.cursor()
+ db.execute("select image from Adobe_imageDevelopSettings")
+ # for image in db.fetchall():
+ # pass
+
+root = Tk()
+root.title("HELLO")
+
+app = Disco(root)
+
+root.mainloop()
View
25,846 discoball.ai
25,846 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
BIN discoball.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6080d11

Please sign in to comment.
Something went wrong with that request. Please try again.