2828
2929class Timelapse ( BasicNotepage ):
3030 def BuildPage ( self ):
31- f = ttk .LabelFrame (self ,text = 'Time lapse settings' ,padding = (5 ,5 ,5 ,5 ))
32- f .grid (row = 0 ,column = 0 ,columnspan = 4 ,sticky = 'NEWS' ,pady = 5 )
33- #f.columnconfigure(2,weight=1)
34- #f.columnconfigure(4,weight=1)
31+ f = ttk .LabelFrame (self ,text = 'Photo Time lapse settings' )
32+ f .grid (row = 0 ,column = 0 ,sticky = 'NEWS' )
33+ f .columnconfigure (1 ,weight = 1 )
3534
36- Label (f ,text = 'Default' ).grid (row = 0 ,column = 0 ,sticky = 'E' )
3735
36+ #------------------- Type of time lapse --------------------
37+ l = Label (f ,text = 'Type:' )
38+ l .grid (row = 0 ,column = 0 ,sticky = 'W' ,pady = 5 )
39+ self .TypeCombo = Combobox (f ,state = 'readonly' ,width = 20 )
40+ self .TypeCombo .grid (row = 0 ,column = 1 ,columnspan = 3 ,sticky = 'W' )
41+ self .TypeCombo ['values' ] = ('Burst' , 'Timed' )
42+ self .TypeCombo .current (0 )
43+ #self.TypeCombo.bind('<<ComboboxSelected>>',self.MeteringModeChanged)
44+ #ToolTip(self.MeteringModeCombo,200)
3845
39-
40-
41- Label (f ,text = 'Custom name' ).grid (row = 1 ,column = 0 ,sticky = 'E' )
42-
46+ #------------------- Use same Setting for all pictures --------------------
47+ self .PersistSetting = True
48+ self .PersistCheck = ttk .Checkbutton (f ,text = 'Same image setting for all pictures' ,
49+ variable = self .PersistSetting , command = self .Clear )
50+ self .PersistCheck .grid (row = 1 ,column = 0 ,sticky = 'NW' ,pady = 5 , columnspan = 2 )
51+ #ToolTip(self.PersistCheck,msg=102)
52+
53+ #------------------- Use Video Port --------------------
54+ self .UseVideo = False
55+ self .UseVideoCheck = ttk .Checkbutton (f ,text = 'Use vdeo port (faster)' ,
56+ variable = self .UseVideo , command = self .Clear )
57+ self .UseVideoCheck .grid (row = 2 ,column = 0 ,sticky = 'NW' ,pady = 5 , columnspan = 2 )
58+ #ToolTip(self.UseVideoCheck,msg=102)
59+
60+ #------------------- Start Schedule --------------------
61+ l = Label (f ,text = 'Start Schedule:' )
62+ l .grid (row = 3 ,column = 0 ,sticky = 'W' ,pady = 5 )
63+
64+ self .StartCombo = Combobox (f ,state = 'readonly' ,width = 20 )
65+ self .StartCombo .grid (row = 3 ,column = 1 ,columnspan = 3 ,sticky = 'W' )
66+ self .StartCombo ['values' ] = ('Inmediately' , 'Delay' ,'Date' )
67+ self .StartCombo .current (0 )
68+ #self.StartCombo.bind('<<ComboboxSelected>>',self.MeteringModeChanged)
69+ #ToolTip(self.StartCombo,200)
70+ self .txt = Entry (f ,width = 20 )
71+ self .txt .grid (row = 3 , column = 2 ,sticky = 'W' )
72+
73+ #------------------- Delay between shots --------------------
74+ l = Label (f ,text = 'Delay between shots:' )
75+ l .grid (row = 4 ,column = 0 ,sticky = 'W' ,pady = 5 )
76+
77+ self .StartCombo = Combobox (f ,state = 'readonly' ,width = 20 )
78+ self .StartCombo .grid (row = 4 ,column = 1 ,columnspan = 3 ,sticky = 'W' )
79+ self .StartCombo ['values' ] = ('Delay' , 'On every' ,'Every Day at' )
80+ self .StartCombo .current (0 )
81+ #self.StartCombo.bind('<<ComboboxSelected>>',self.MeteringModeChanged)
82+ #ToolTip(self.StartCombo,200)
83+ self .txt = Entry (f ,width = 20 )
84+ self .txt .grid (row = 4 , column = 2 ,sticky = 'W' )
85+
86+ #------------------- End Schedule --------------------
87+ l = Label (f ,text = 'End Schedule:' )
88+ l .grid (row = 5 ,column = 0 ,sticky = 'W' ,pady = 5 )
89+
90+ self .StartCombo = Combobox (f ,state = 'readonly' ,width = 20 )
91+ self .StartCombo .grid (row = 5 ,column = 1 ,columnspan = 3 ,sticky = 'W' )
92+ self .StartCombo ['values' ] = ('After n Shots' , 'After t Elapsed Time' ,'Date' )
93+ self .StartCombo .current (0 )
94+ #self.StartCombo.bind('<<ComboboxSelected>>',self.MeteringModeChanged)
95+ #ToolTip(self.StartCombo,200)
96+ self .txt = Entry (f ,width = 20 )
97+ self .txt .grid (row = 5 , column = 2 ,sticky = 'W' )
98+
99+ #------------------- Filename --------------------
100+ l = Label (f ,text = 'Filename' )
101+ l .grid (row = 6 ,column = 0 ,sticky = 'W' ,pady = 5 )
102+
103+
104+ self .txt = Entry (f ,width = 20 )
105+ self .txt .grid (row = 6 , column = 1 ,sticky = 'W' )
43106
44- self .txt = Entry (f ,width = 10 )
45- self .txt .grid (row = 1 , column = 1 )
107+
108+ def CaptureLowLight ( self ):
109+ self .camera .capture ('foo.jpg' )
110+ pass
111+ def ReadEntry ( self ):
112+ self .res = "Welcome to " + self .txt .get ()
113+ pass
114+ def Clear ( self ):
115+ pass
116+ def Clear ( self ):
117+ self .combo .get ()
118+ pass
119+ def StartDelayCapture ( self ):
120+ pass
121+ #### TODO: Implement Reset NEEDS LOTS OF WORK!!
122+ def Reset ( self ):
123+ pass
124+
125+ '''
126+
127+ Label(f,text='Custom name').grid(row=1,column=0,sticky='E')
128+
129+
46130
47131 self.Eexecute = Button(f,text='Ok',width=10, command=self.ReadEntry)
48132 self.Eexecute.grid(row=1,column=3,sticky='W')
@@ -68,24 +152,9 @@ def BuildPage ( self ):
68152
69153 self.combo.grid( row=4, column=0)
70154
71-
155+ '''
156+
72157
73- def CaptureLowLight ( self ):
74- self .camera .capture ('foo.jpg' )
75- pass
76- def ReadEntry ( self ):
77- self .res = "Welcome to " + self .txt .get ()
78- pass
79- def Clear ( self ):
80- pass
81- def Clear ( self ):
82- self .combo .get ()
83- pass
84- def StartDelayCapture ( self ):
85- pass
86- #### TODO: Implement Reset NEEDS LOTS OF WORK!!
87- def Reset ( self ):
88- pass
89158
90159'''
91160 What controls are needed for this page?
0 commit comments