def __init__(self, card_id, card_holder, number_in_hand): Widget.__init__(self) Button.__init__(self) self.card_id = card_id self.card_holder = card_holder self.number_in_hand = number_in_hand self.background_normal = 'assets/cards/' + str(card_holder) + '/1' + str(card_id)
def __init__(self, card_id, card_holder, number_in_hand): Widget.__init__(self) Button.__init__(self) self.card_id = card_id self.card_holder = card_holder self.number_in_hand = number_in_hand self.background_normal = 'assets/cards/' + str( card_holder) + '/1' + str(card_id)
def __init__(self, row: int, column: int, is_alive: bool): Button.__init__(self) self.__not_selected_color = self.background_color self.__selected_color = [0.0, 1.0, 1.0, 1.0] self.row = row self.column = column self.is_alive = is_alive
def __init__(self, cid, dsc, **kwargs): """ @cid - id karty @dsc - opis karty pojawiajacy sie w dymku """ Button.__init__(self, **kwargs) self.cid = cid self.dsc = dsc
def __init__(self, row: int, column: int): Button.__init__(self, on_press=self.setup_map_screen_tile_clicked) self.row = row self.column = column self.is_selected = False self.__not_selected_color = self.background_color self.__selected_color = [0.0, 1.0, 1.0, 1.0]
def __init__(self, **kwargs): Button.__init__( self, text='', disabled=True, opacity=0, **kwargs, ) self.dropdown_text = _('Options') self._on_release = None
def __init__(self,images,*args,**kwargs): Button.__init__(self,*args,**kwargs) self.size_hint = 1,1 costumes = images #[Image(source=image,allow_stretch=True,keep_ratio=False) # for image in images] #t = Label(text = 'hello',font_size =100) #self.size=i.size self.switch_costume_to(costumes[0])
def __init__(self, title): Button.__init__(self) if title == 'Switch': self.background_disabled_normal = f'{atlas}SwitchCellBtn_normal' self.text = '' self.size = (24, 16) elif title == 'Add': self.background_disabled_normal = f'{atlas}AddCell_normal' self.text = '+' else: self.background_disabled_normal = f'{atlas}Title{title[:-1]}Cell_normal' self.text = ''
def __init__(self, datamodel): #python inheritance syntax is so wonky... Button.__init__(self) self.datam = datamodel self.text = self.getPrettyText() self.halign = 'center' self.background_color=self.getColor() self.markup = True self.bind(on_press=self.pressed) print('Creating button') print(self.datam.name) print(colorlist[self.datam.name]) return
def __init__(self): Button.__init__(self, text="不应该能看到这个文字啊") self.PatternData = { 'value': 0, 'nodes': [{ 'color': [0, 0, 0], 'shape': 'circle' }] } self.Pattern_BackGround = "White" self.Dict_BackGroundColor = { "White": [1, 1, 1], "Red": [1, 0.5, 0.5], "Green": [0.5, 1, 0.5] } self.UpdatedSize = (0, 0) self.UpdatePattern() self.bind(on_press=self.UpdatePattern) Clock.schedule_interval(self.CheckSize, 1)
def __init__(self): def GoBack(self): print('activated') print(sm.current) sm.transition = NoTransition() if sm.current == "devicesnotes": sm.current = "notifications" elif sm.current == "phoneenotes": sm.current = 'notifications' elif sm.current == "notifications": sm.current = 'settings' elif sm.current == 'security': sm.current = 'settings' elif sm.current == 'dispensing': sm.current = 'settings' elif sm.current == 'accessibility': sm.current = 'settings' sm.transition = SlideTransition() Button.__init__(self) RelativeLayout.__init__(self) self.background_normal = '' self.background_color = White self.bind(on_press=GoBack)
def __init__(self, **kwargs): Button.__init__(self, **kwargs) self.size_hint = (0.1,0.1) self.background_normal = 'heart-04.png'
def __init__(self, whos_stone, row, col): Button.__init__(self) self.whos_stone = whos_stone #משתנה זה שומר למי שייח המשבצת self.row = row #משתנה זה שומר את השורה בא נימצאת המשבצת self.col = col #משתנה זה שומר את העמודה בא נימצאת המשבצת
def __init__(self, **kwargs): Button.__init__(self, **kwargs) #new button has a mode that transits between verify, complete. self.mode = "verify" #verify payment shows as text on the button self.text = "Verify Payment"
def __init__(self, **kw): Button.__init__(self, **kw) self.background_color=COLOURS[self.index]
def __init__(self, just_calc_app, **kwargs): Button.__init__(self, **kwargs) self.just_calc_app = just_calc_app self.customize()
def __init__(self, **kwargs): KivyButton.__init__(self, **kwargs) Clickable.__init__(self)
def __init__(self): Button.__init__(self); self.start=None self.frame=0
def __init__(self, **kwargs): Button.__init__(self, **kwargs) cOrcaButtonBehaviour.__init__(self, **kwargs)
def __init__(self,account, **kv): Button.__init__(self, **kv) self.account = account
def __init__(self, *args, **kwargs): global fingerkeylist fingerkeylist.append(self) Button.__init__(self, *args, **kwargs)
def __init__(self,**kwargs): Button.__init__(self,**RemoveNoClassArgs(dInArgs=kwargs,oObject=Button)) cOrcaButtonBehaviour.__init__(self,**kwargs)
def __init__(self, note, *args, **kwargs): self.note = note self.light_color = OFF Button.__init__(self, *args, **kwargs)
def __init__(self, **kwargs): Button.__init__(self, **kwargs) self.texts = ['Programming is fun', 'It is fun to program'] self.text = self.texts[0]
def __init__(self, number, **kwargs): Button.__init__(self, **kwargs) self.number = number self.set_default_text()
def __init__(self, **kwargs): Button.__init__(self,**kwargs)
def __init__(self, **kargs): Button.__init__(kargs) self.a = 0
def __init__(self, **kwargs): """Create new NSDisableButton""" Button.__init__(self, **kwargs) self.default_text = "[color=%s]" + self.text + "[/color]" self.markup = True self.enable()
def __init__(self, **kwargs): Button.__init__(self, **kwargs) self.text = 'Slide me'
def __init__(self, sonos, **kwargs): Button.__init__(self, **kwargs) self.controller = sonos self.text = sonos.group.label
def __init__(self, **kwargs): Button.__init__(self, **kwargs) self.change_values = [15, 5] Clock.schedule_interval(self.update_method, 1 / 120)
def __init__(self, **kwargs): Button.__init__(self, **kwargs) self.font_name = "/usr/share/fonts/truetype/freefont/FreeMono.ttf" self.font_size = 72
def __init__(self, **kwargs): Button.__init__(self, **kwargs) self.font_size = 24 self.background_normal = 'brick_nom-02.png' self.background_down = 'brick_down-03.png'
def __init__(self, **kwargs): Button.__init__(self, **kwargs) self.register_event_type('on_double_press') if kwargs.get("on_double_press") is not None: self.bind(on_double_press=kwargs.get("on_double_press"))
def __init__(self,**kwargs): Button.__init__(self,**RemoveNoClassArgs(kwargs,Button)) cOrcaButtonBehaviour.__init__(self,**kwargs)
def __init__(self): Button.__init__(self) self.sayi = 1 self.text = "Basiniz, sayi = %d" %self.sayi self.on_press = self.arttir
def __init__(self): Button.__init__(self, text='DHT lookup\n')
def __init__(self, root): Lbl.__init__(self) Button.__init__(self) self.pos_hint['center_x'] = .5 self.root = root self.TEXT_WIDTH = (self.width * .9) // ((self.font_size * 2) // 3)
def __init__(self, **kwargs): Button.__init__(self, **kwargs)
def __init__(self, *args, **kws): kws.update(background_color=[1, 1, 1, 1]) Button.__init__(self, *args, **kws) self.border = [16, 16, 30, 16]