#--Button---------
closeButton = Button(self, text="close", command=self.quit)
closeButton.place(x=520, y=350)
OKButton = Button(self, text="OK", command=self.LAUNCHBLAST)
OKButton.place(x=440, y=350)
BROWSEButton = Button(self, text="BROWSE", command=self.openDirectory)
BROWSEButton.place(x=520, y=310)
SelectALLButton = Button(self, text="Select ALL", command=self.select_all, state=DISABLED)
SelectALLButton.place(x=10, y=250)
ClearALLButton = Button(self, text="Clear ALL", state=DISABLED)
ClearALLButton.place(x=90, y=250)
#--CHECK Button---
self.varPSTD_CB = IntVar()
Playblast_STD_CB = Checkbutton(self, text="Create Playblast By Shots", bg="#78766E", variable=self.varPSTD_CB)
Playblast_STD_CB.place(x=310, y=40)
#---
self.varPSTR_CB = IntVar()
Playblast_STR_CB = Checkbutton(self, text="Create Playblast By Shots Stereo", bg="#78766E", variable=self.varPSTR_CB)
Playblast_STR_CB.place(x=310, y=60)
#---
self.varPSeqSTD_CB = IntVar()
Playblast_SeqSTD_CB = Checkbutton(self, text="Create Playblast By Sequence", bg="#78766E", variable=self.varPSeqSTD_CB)
Playblast_SeqSTD_CB.place(x=310, y=80)
#---
self.varPSeqSTR_CB = IntVar()
Playblast_SeqSTR_CB = Checkbutton(self, text="Create Playblast By Sequence Stereo", bg="#78766E", variable=self.varPSeqSTR_CB)
Playblast_SeqSTR_CB.place(x=310, y=100)
#--LISTBOX-------
# scrollbar = Scrollbar(self)
lb = Listbox(self, height=12, width=42, selectmode=EXTENDED, bg="#DCDAD2")
lb.place(x=10, y=40)
#TEMPS
T=0
while T<60:
lb.insert(END, "SHOTS"+str(T))
T = T+1
# print lb.get(0, END) <<< Marche
#--LABEL---------
self.varLabel = StringVar()
self.varLabel.set("//")
label = Label(self, textvariable=self.varLabel, width=70, relief=RIDGE, anchor=W, )
label.place(x=10, y=312)
#---
label2 = Label(self, text="OUTPUT DIRECTORY :", width=18, relief=FLAT, anchor=W, bg="#78766E" )
label2.place(x=10, y=288)
#---
label3 = Label(self, text="SHOTS LIST :", width=12, relief=FLAT, anchor=W, bg="#78766E" )
label3.place(x=10, y=10)
#---
label4 = Label(self, text="OPTIONS :", width=9, relief=FLAT, anchor=W, bg="#78766E" )
label4.place(x=310, y=10)
#DEF FOR EXECUTING SCRIPT
def select_all(self):
print self.lb.get(0, END) << Ne marche pas...
def openDirectory(self):
dirname = tkFileDialog.askdirectory(initialdir="%HOME%")
self.varLabel.set(dirname)
print "DIRECTORY : "+dirname
def GET_CAM(self):
#get the cam name and put it in the variable
print "CAMERA LIST standard and stereo"
def GET_SOUND(self):
print "GET SOUND"
def LAUNCHBLAST(self):
if self.varLabel.get() != "//" and self.varLabel.get() != "":
if self.varPSTD_CB.get() == 1: << Récuperation de la valeur sans pb
print "MODE Playblast By Shots Enable" << MARCHE avec bouton OK
Partager