Salome HOME
Improve PYHELLO GUI (QActionGroup usage) RELIQUAT_4x_25102008
authorvsr <vsr@opencascade.com>
Fri, 26 Sep 2008 12:00:01 +0000 (12:00 +0000)
committervsr <vsr@opencascade.com>
Fri, 26 Sep 2008 12:00:01 +0000 (12:00 +0000)
src/PYHELLOGUI/PYHELLOGUI.py

index c17988fbe5de5f14eb0a6eaf2a642a0fd2052dfa..8281f902373486c0fd8e57ed28374c5dcc1cb685 100644 (file)
@@ -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