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)
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)
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)
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 __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 __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)