Просмотр исходного кода

- small fix in the GUI layout in Gerber Editor

Marius Stanciu 6 лет назад
Родитель
Сommit
fd99e982d6
2 измененных файлов с 4 добавлено и 0 удалено
  1. 1 0
      README.md
  2. 3 0
      flatcamEditors/FlatCAMGrbEditor.py

+ 1 - 0
README.md

@@ -25,6 +25,7 @@ CAD program, and create G-Code for Isolation routing.
 - modified the GUI in all tools making the text of the buttons bold and adding a new button named Reset Tool which have to reset the tool GUI and variables (need to check all tools to see if happen)
 - modified the GUI in all tools making the text of the buttons bold and adding a new button named Reset Tool which have to reset the tool GUI and variables (need to check all tools to see if happen)
 - when the Tool tab is in focus, clicking on canvas will no longer change the focus to Project tab
 - when the Tool tab is in focus, clicking on canvas will no longer change the focus to Project tab
 - Copper Thieving Tool - when creating the pattern platting mask will make a new Gerber object with it
 - Copper Thieving Tool - when creating the pattern platting mask will make a new Gerber object with it
+- small fix in the GUI layout in Gerber Editor
 
 
 3.12.2019
 3.12.2019
 
 

+ 3 - 0
flatcamEditors/FlatCAMGrbEditor.py

@@ -2360,6 +2360,7 @@ class FlatCAMGrbEditor(QtCore.QObject):
         self.units = self.app.defaults['units'].upper()
         self.units = self.app.defaults['units'].upper()
 
 
         self.grb_edit_widget = QtWidgets.QWidget()
         self.grb_edit_widget = QtWidgets.QWidget()
+
         layout = QtWidgets.QVBoxLayout()
         layout = QtWidgets.QVBoxLayout()
         self.grb_edit_widget.setLayout(layout)
         self.grb_edit_widget.setLayout(layout)
 
 
@@ -2439,6 +2440,8 @@ class FlatCAMGrbEditor(QtCore.QObject):
 
 
         grid1 = QtWidgets.QGridLayout()
         grid1 = QtWidgets.QGridLayout()
         self.apertures_box.addLayout(grid1)
         self.apertures_box.addLayout(grid1)
+        grid1.setColumnStretch(0, 0)
+        grid1.setColumnStretch(1, 1)
 
 
         apcode_lbl = QtWidgets.QLabel('%s:' % _('Aperture Code'))
         apcode_lbl = QtWidgets.QLabel('%s:' % _('Aperture Code'))
         apcode_lbl.setToolTip(_("Code for the new aperture"))
         apcode_lbl.setToolTip(_("Code for the new aperture"))