- fixed an small issue in Object UI
This commit is contained in:
@@ -208,19 +208,13 @@ class FlatCAMObj(QtCore.QObject):
|
|||||||
self.muted_ui = True
|
self.muted_ui = True
|
||||||
FlatCAMApp.App.log.debug(str(inspect.stack()[1][3]) + "--> FlatCAMObj.build_ui()")
|
FlatCAMApp.App.log.debug(str(inspect.stack()[1][3]) + "--> FlatCAMObj.build_ui()")
|
||||||
|
|
||||||
# Remove anything else in the box
|
|
||||||
# box_children = self.app.ui.notebook.selected_contents.get_children()
|
|
||||||
# for child in box_children:
|
|
||||||
# self.app.ui.notebook.selected_contents.remove(child)
|
|
||||||
# while self.app.ui.selected_layout.count():
|
|
||||||
# self.app.ui.selected_layout.takeAt(0)
|
|
||||||
|
|
||||||
# Put in the UI
|
|
||||||
# box_selected.pack_start(sw, True, True, 0)
|
|
||||||
# self.app.ui.notebook.selected_contents.add(self.ui)
|
|
||||||
# self.app.ui.selected_layout.addWidget(self.ui)
|
|
||||||
try:
|
try:
|
||||||
|
# HACK: disconnect the scale entry signal since on focus out event will trigger an undesired scale()
|
||||||
|
# it seems that the takewidget() does generate a focus out event for the QDoubleSpinbox ...
|
||||||
|
# and reconnect after the takeWidget() is done
|
||||||
|
self.ui.scale_entry.returnPressed.disconnect(self.on_scale_button_click)
|
||||||
self.app.ui.selected_scroll_area.takeWidget()
|
self.app.ui.selected_scroll_area.takeWidget()
|
||||||
|
self.ui.scale_entry.returnPressed.connect(self.on_scale_button_click)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.app.log.debug("FlatCAMObj.build_ui() --> Nothing to remove: %s" % str(e))
|
self.app.log.debug("FlatCAMObj.build_ui() --> Nothing to remove: %s" % str(e))
|
||||||
self.app.ui.selected_scroll_area.setWidget(self.ui)
|
self.app.ui.selected_scroll_area.setWidget(self.ui)
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ CAD program, and create G-Code for Isolation routing.
|
|||||||
|
|
||||||
- Calibrate Tool - rearranged the GUI
|
- Calibrate Tool - rearranged the GUI
|
||||||
- in Geometry UI made sure that the Label that points to the Tool parameters show clearly that those parameters apply only for the selected tool
|
- in Geometry UI made sure that the Label that points to the Tool parameters show clearly that those parameters apply only for the selected tool
|
||||||
|
- fixed an small issue in Object UI
|
||||||
|
|
||||||
7.12.2019
|
7.12.2019
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user