Skip to content

Commit 507a451

Browse files
committed
hal_glib -add ok and cancel messages
1 parent bc09d0d commit 507a451

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/python/common/hal_glib.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ class _GStat(GObject.GObject):
244244
'following-error': (GObject.SignalFlags.RUN_FIRST , GObject.TYPE_NONE,(GObject.TYPE_PYOBJECT,)),
245245
'cycle-start-request': (GObject.SignalFlags.RUN_FIRST, GObject.TYPE_NONE, (GObject.TYPE_BOOLEAN,)),
246246
'cycle-pause-request': (GObject.SignalFlags.RUN_FIRST, GObject.TYPE_NONE, (GObject.TYPE_BOOLEAN,)),
247+
'ok-request': (GObject.SignalFlags.RUN_FIRST, GObject.TYPE_NONE, (GObject.TYPE_BOOLEAN,)),
248+
'cancel-request': (GObject.SignalFlags.RUN_FIRST, GObject.TYPE_NONE, (GObject.TYPE_BOOLEAN,)),
247249
'macro-call-request': (GObject.SignalFlags.RUN_FIRST, GObject.TYPE_NONE, (GObject.TYPE_STRING,)),
248250
}
249251

@@ -1460,6 +1462,12 @@ def request_cycle_pause(self, data):
14601462
def request_macro_call(self, data):
14611463
self.emit('macro-call-request', data)
14621464

1465+
def request_ok(self, data):
1466+
self.emit('ok-request', data)
1467+
1468+
def request_cancel(self, data):
1469+
self.emit('cancel-request', data)
1470+
14631471
#############################################
14641472

14651473
def shutdown(self):

0 commit comments

Comments
 (0)