(self, widget)
Window state changed
Window state changed
Window state changed
def on_winstatecombo_changed(self, widget):
        """Window state changed"""
        selected = widget.get_active()
        if selected == 1:
            value = 'hidden'
        elif selected == 2:
            value = 'maximise'
        elif selected == 3:
            value = 'fullscreen'
        else:
            value = 'normal'
        self.config['window_state'] = value
        self.config.save()
def on_winstatecombo_changed ( self , widget ) : selected = widget . get_active ( ) if selected == 1 : value = 'hidden' elif selected == 2 : value = 'maximise' elif selected == 3 : value = 'fullscreen' else : value = 'normal' self . config [ 'window_state' ] = value self . config . save ( )