|
38 | 38 | # Set the log level for this module |
39 | 39 | if not INFO.LINUXCNC_IS_RUNNING: |
40 | 40 | LOG.setLevel(logger.DEBUG) # One of DEBUG, INFO, WARNING, ERROR, CRITICAL |
41 | | -LOG.setLevel(logger.DEBUG) |
42 | 41 | try: |
43 | 42 | from PyQt5 import QtSvg |
44 | 43 | except: |
@@ -236,6 +235,7 @@ def checkIfFloat(val): |
236 | 235 | # add labels and edits |
237 | 236 | # self[tName][0] is the list of name text and defaults pairs |
238 | 237 | for n, name in enumerate(self[tName][0]): |
| 238 | + LOG.verbose('{} {}'.format(tName, name)) |
239 | 239 | #print('int------>',self[tName]) |
240 | 240 | # if no list of names then continue looking |
241 | 241 | if name[0]=='':continue |
@@ -485,9 +485,11 @@ def runMacro(self): |
485 | 485 | for num, i in enumerate(self[name][0]): |
486 | 486 | # check for macro that needs no data |
487 | 487 | if i == ('', ''):break |
488 | | - # Look for a radio button instance so we can convert to integers |
| 488 | + # Look for button widget instance so we can convert to integers |
489 | 489 | # other wise we assume text |
490 | | - if isinstance(self['%s%d' % (name, num)], QtWidgets.QRadioButton): |
| 490 | + if isinstance(self['%s%d' % (name, num)], QtWidgets.QRadioButton) or \ |
| 491 | + isinstance(self['%s%d' % (name, num)], QtWidgets.QCheckBox) or \ |
| 492 | + isinstance(self['%s%d' % (name, num)], QtWidgets.QPushButton): |
491 | 493 | data = str(1 * int(self['%s%d' % (name, num)].isChecked())) |
492 | 494 | else: |
493 | 495 | data = str(self['%s%d' % (name, num)].text()) |
|
0 commit comments