From 1612a0c14b343b1f49694e6ea4f0c99aba77adf9 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 26 Sep 2008 12:00:01 +0000 Subject: [PATCH] Improve PYHELLO GUI (QActionGroup usage) --- src/PYHELLOGUI/PYHELLOGUI.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PYHELLOGUI/PYHELLOGUI.py b/src/PYHELLOGUI/PYHELLOGUI.py index c17988f..8281f90 100644 --- a/src/PYHELLOGUI/PYHELLOGUI.py +++ b/src/PYHELLOGUI/PYHELLOGUI.py @@ -82,6 +82,8 @@ class GUIcontext: a = sgPyQt.createSeparator() sgPyQt.createMenu( a, mid ) ag = sgPyQt.createActionGroup( GUIcontext.OPTIONS_ID ) + ag.setText( "Creation mode" ) + ag.setUsesDropDown( True ) a = sgPyQt.createAction( GUIcontext.OPTION_1_ID, "Default name", "Default name", "Use default name for the objects" ) a.setToggleAction( True ) ag.add( a ) @@ -92,6 +94,7 @@ class GUIcontext: a.setToggleAction( True ) ag.add( a ) sgPyQt.createMenu( ag, mid ) + sgPyQt.createTool( ag, tid ) default_mode = sgPyQt.integerSetting( "PYHELLO", "creation_mode", 0 ) sgPyQt.action( GUIcontext.OPTION_1_ID + default_mode ).setOn( True ) # the following action are used in context popup -- 2.30.2