Skip to content

Commit ef17bb8

Browse files
committed
qtaxis -add version string to log
1 parent 69be246 commit ef17bb8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

share/qtvcp/screens/qtaxis/qtaxis_handler.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
# Set the log level for this module
2626
#LOG.setLevel(logger.INFO) # One of DEBUG, INFO, WARNING, ERROR, CRITICAL
2727

28+
VERSION = '1.0'
29+
2830
###########################################
2931
# **** instantiate libraries section **** #
3032
###########################################
@@ -173,6 +175,11 @@ def initialized__(self):
173175
self.w.dro_label_g53_y.setVisible(False)
174176

175177
self.restoreSettings()
178+
179+
message = "--- QtAxis Version {} on Linuxcnc {} ---".format(
180+
VERSION, STATUS.get_linuxcnc_version())
181+
STATUS.emit('update-machine-log', message, None)
182+
176183
#QtWidgets.QApplication.instance().event_filter.focusIn.connect(self.focusInChanged)
177184

178185
def processed_key_event__(self,receiver,event,is_pressed,key,code,shift,cntrl):

0 commit comments

Comments
 (0)