def __init__(self, title = "New Radio Button", **kwds):
     font = self._win_predict_font(kwds)
     w = font.width(title) + win_hpad + win_check_size
     h = max(self._calc_height(font), win_check_size)
     win_style = wc.BS_RADIOBUTTON
     win = self._win_create_button(title, win_style, w, h)
     GRadioButton.__init__(self, _win = win, **kwds)
예제 #2
0
 def __init__(self, title="New Radio Button", **kwds):
     font = self._win_predict_font(kwds)
     w = font.width(title) + win_hpad + win_check_size
     h = max(self._calc_height(font), win_check_size)
     win_style = wc.BS_RADIOBUTTON
     win = self._win_create_button(title, win_style, w, h)
     GRadioButton.__init__(self, _win=win, **kwds)
예제 #3
0
 def __init__(self, title="New Radio Button", font=system_font, **kwds):
     ns_button = self._create_ns_button(
         title=title,
         font=font,
         ns_button_type=AppKit.NSRadioButton,
         ns_bezel_style=AppKit.NSRoundedBezelStyle)
     GRadioButton.__init__(self, _ns_view=ns_button, **kwds)
예제 #4
0
 def __init__(self, title="New Control", **kwds):
     gtk_radiobutton = gtk.RadioButton(None, title)
     gtk_radiobutton.show()
     self._gtk_connect(gtk_radiobutton, 'toggled', self._gtk_toggled_signal)
     GRadioButton.__init__(self, _gtk_outer=gtk_radiobutton, **kwds)
예제 #5
0
 def __init__(self, title = "New Control", **kwds):
     gtk_radiobutton = gtk.RadioButton(None, title)
     gtk_radiobutton.show()
     self._gtk_connect(gtk_radiobutton, 'toggled', self._gtk_toggled_signal)
     GRadioButton.__init__(self, _gtk_outer = gtk_radiobutton, **kwds)
 def mouse_up(self, event):
     if self._win.GetState() & 0x4: # highlight
         self._win_activate()
     GRadioButton.mouse_up(self, event)
예제 #7
0
 def mouse_up(self, event):
     if self._win.GetState() & 0x4:  # highlight
         self._win_activate()
     GRadioButton.mouse_up(self, event)
예제 #8
0
 def __init__(self, title = "New Radio Button", font = system_font, **kwds):
     ns_button = self._create_ns_button(title = title, font = font,
         ns_button_type = AppKit.NSRadioButton,
         ns_bezel_style = AppKit.NSRoundedBezelStyle)
     GRadioButton.__init__(self, _ns_view = ns_button, **kwds)