Import LinuxCNC source tree
This commit is contained in:
8
configs/apps/gladevcp/simple-callback/simplecallback.py
Normal file
8
configs/apps/gladevcp/simple-callback/simplecallback.py
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
nhits = 0
|
||||
|
||||
def on_button_press(gtkobj,data=None):
|
||||
global nhits
|
||||
nhits += 1
|
||||
print ("on_button_press callback")
|
||||
gtkobj.set_label("hits: %d" % nhits)
|
||||
Reference in New Issue
Block a user