- added more key shortcuts into the application; they are now displayed in the GUI menu's
- reorganized the Edit -> Preferences -> Global
- redesigned the messagebox that is showed when quiting ot creating a New Project: now it has an option ('Cancel') to abort the process returning to the app
This commit is contained in:
@@ -53,6 +53,9 @@ class Properties(FlatCAMTool):
|
||||
FlatCAMTool.run(self)
|
||||
self.properties()
|
||||
|
||||
def install(self, icon=None, separator=None, **kwargs):
|
||||
FlatCAMTool.install(self, icon, separator, shortcut='P', **kwargs)
|
||||
|
||||
def properties(self):
|
||||
obj_list = self.app.collection.get_selected()
|
||||
if not obj_list:
|
||||
@@ -86,10 +89,10 @@ class Properties(FlatCAMTool):
|
||||
width = abs(ymax - ymin)
|
||||
|
||||
self.addChild(dims, ['Length:', '%.4f %s' % (
|
||||
length, self.app.general_options_form.general_group.units_radio.get_value().lower())], True)
|
||||
length, self.app.general_options_form.general_app_group.units_radio.get_value().lower())], True)
|
||||
self.addChild(dims, ['Width:', '%.4f %s' % (
|
||||
width, self.app.general_options_form.general_group.units_radio.get_value().lower())], True)
|
||||
if self.app.general_options_form.general_group.units_radio.get_value().lower() == 'mm':
|
||||
width, self.app.general_options_form.general_app_group.units_radio.get_value().lower())], True)
|
||||
if self.app.general_options_form.general_app_group.units_radio.get_value().lower() == 'mm':
|
||||
area = (length * width) / 100
|
||||
self.addChild(dims, ['Box Area:', '%.4f %s' % (area, 'cm2')], True)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user