@@ -268,6 +268,7 @@ def domenu_fontsettings(self, *args):
268268 def domenu_options (self , * args ):
269269 rv = SaveOptions (self ._creator )
270270 if rv :
271+ self .editgroup .editor .selchanged = 1 # ouch...
271272 self ._creator = rv
272273
273274 def clicklinefield (self ):
@@ -633,24 +634,24 @@ def __init__(self, creator):
633634 self .w = w = W .ModalDialog ((240 , 140 ), 'Save options' )
634635 radiobuttons = []
635636 w .label = W .TextBox ((8 , 8 , 80 , 18 ), "File creator:" )
636- w .ide_radio = W .RadioButton ((8 , 22 , 80 , 18 ), "IDE " , radiobuttons , self .ide_hit )
637- w .interp_radio = W .RadioButton ((8 , 42 , 80 , 18 ), "Interpreter" , radiobuttons , self .interp_hit )
637+ w .ide_radio = W .RadioButton ((8 , 22 , 160 , 18 ), "This application " , radiobuttons , self .ide_hit )
638+ w .interp_radio = W .RadioButton ((8 , 42 , 160 , 18 ), "Python Interpreter" , radiobuttons , self .interp_hit )
638639 w .other_radio = W .RadioButton ((8 , 62 , 50 , 18 ), "Other:" , radiobuttons )
639640 w .other_creator = W .EditText ((62 , 62 , 40 , 20 ), creator , self .otherselect )
640641 w .cancelbutton = W .Button ((- 180 , - 30 , 80 , 16 ), "Cancel" , self .cancelbuttonhit )
641642 w .okbutton = W .Button ((- 90 , - 30 , 80 , 16 ), "Done" , self .okbuttonhit )
642643 w .setdefaultbutton (w .okbutton )
643644 if creator == 'Pyth' :
644645 w .interp_radio .set (1 )
645- elif creator == 'Pide' :
646+ elif creator == W . _signature :
646647 w .ide_radio .set (1 )
647648 else :
648649 w .other_radio .set (1 )
649650 w .bind ("cmd." , w .cancelbutton .push )
650651 w .open ()
651652
652653 def ide_hit (self ):
653- self .w .other_creator .set ("Pide" )
654+ self .w .other_creator .set (W . _signature )
654655
655656 def interp_hit (self ):
656657 self .w .other_creator .set ("Pyth" )
0 commit comments