Permalink
Browse files

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

…ection
  • Loading branch information...
conch committed Apr 22, 2012
1 parent 0dc4c89 commit 6080d114701968d5c178da3cc66d637e5848c383
Showing with 25,883 additions and 0 deletions.
  1. +37 −0 disco.py
  2. +25,846 −0 discoball.ai
  3. BIN discoball.gif
View
@@ -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()
Oops, something went wrong.

0 comments on commit 6080d11

Please sign in to comment.