@@ -48,7 +48,7 @@ def __init__(self, parent):
48
48
Label (frame , text = 'Angle (0)' , width = 20 ).grid (row = 2 , column = 0 , sticky = 'W' )
49
49
Label (frame , text = 'Angle (+)' , width = 20 ).grid (row = 3 , column = 0 , sticky = 'W' )
50
50
Label (frame , text = 'Alpha wobbler (±)' , width = 20 ).grid (row = 4 , column = 0 , sticky = 'W' )
51
- Label (frame , text = 'Stage (XY )' , width = 20 ).grid (row = 6 , column = 0 , sticky = 'W' )
51
+ Label (frame , text = 'Stage (XYZ )' , width = 20 ).grid (row = 6 , column = 0 , sticky = 'W' )
52
52
53
53
angle = {'width' : 10 , 'from_' : - 90 , 'to' : 90 , 'increment' : 5 }
54
54
angle_i1 = {** angle , 'increment' : 1 }
@@ -75,6 +75,8 @@ def __init__(self, parent):
75
75
e_stage_x .grid (row = 6 , column = 1 , sticky = 'EW' )
76
76
e_stage_y = Spinbox (frame , textvariable = self .var_stage_y , ** stage )
77
77
e_stage_y .grid (row = 6 , column = 2 , sticky = 'EW' )
78
+ e_stage_z = Spinbox (frame , textvariable = self .var_stage_z , ** stage )
79
+ e_stage_z .grid (row = 6 , column = 3 , sticky = 'EW' )
78
80
79
81
if config .settings .use_goniotool :
80
82
Label (frame , text = 'Rot. Speed' , width = 20 ).grid (row = 5 , column = 0 , sticky = 'W' )
@@ -97,9 +99,9 @@ def __init__(self, parent):
97
99
b_positive_angle .grid (row = 3 , column = 2 , sticky = 'W' )
98
100
99
101
b_stage = Button (frame , text = 'Set' , command = self .set_stage )
100
- b_stage .grid (row = 6 , column = 3 , sticky = 'W' )
102
+ b_stage .grid (row = 6 , column = 4 , sticky = 'W' )
101
103
b_stage_get = Button (frame , text = 'Get' , command = self .get_stage )
102
- b_stage_get .grid (row = 6 , column = 4 , sticky = 'W' )
104
+ b_stage_get .grid (row = 6 , column = 5 , sticky = 'W' )
103
105
104
106
# defocus button
105
107
Label (frame , text = 'Diff defocus' , width = 20 ).grid (row = 13 , column = 0 , sticky = 'W' )
@@ -196,6 +198,7 @@ def init_vars(self):
196
198
197
199
self .var_stage_x = IntVar (value = 0 )
198
200
self .var_stage_y = IntVar (value = 0 )
201
+ self .var_stage_z = IntVar (value = 0 )
199
202
200
203
self .var_goniotool_tx = IntVar (value = 1 )
201
204
@@ -272,16 +275,18 @@ def set_stage(self):
272
275
'task' : 'stage.set' ,
273
276
'x' : self .var_stage_x .get (),
274
277
'y' : self .var_stage_y .get (),
278
+ 'z' : self .var_stage_z .get (),
275
279
'wait' : self .var_stage_wait .get (),
276
280
},
277
281
)
278
282
)
279
283
self .triggerEvent .set ()
280
284
281
285
def get_stage (self , event = None ):
282
- x , y , _ , _ , _ = self .ctrl .stage .get ()
286
+ x , y , z , _ , _ = self .ctrl .stage .get ()
283
287
self .var_stage_x .set (round (x ))
284
288
self .var_stage_y .set (round (y ))
289
+ self .var_stage_z .set (round (z ))
285
290
286
291
def toggle_alpha_wobbler (self ):
287
292
if self .var_alpha_wobbler_on .get ():
0 commit comments