コード例 #1
0
ファイル: LenaMain.py プロジェクト: ammosov/TrumpStamp
 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)
コード例 #2
0
ファイル: LenaMain.py プロジェクト: PotapovaSofia/TrumpStamp
 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)
コード例 #3
0
    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
コード例 #4
0
ファイル: cardswidgets.py プロジェクト: phiotr/DysDroid
    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
コード例 #5
0
    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]
コード例 #6
0
 def __init__(self, **kwargs):
     Button.__init__(
         self,
         text='',
         disabled=True,
         opacity=0,
         **kwargs,
     )
     self.dropdown_text = _('Options')
     self._on_release = None
コード例 #7
0
ファイル: kivy_scratch.py プロジェクト: kivy-scratch/source
 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])
コード例 #8
0
ファイル: widgets.py プロジェクト: OleksiiDovhaniuk/GCG_v1.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 = ''
コード例 #9
0
    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
コード例 #10
0
    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)
コード例 #11
0
    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)
コード例 #12
0
ファイル: Typing.py プロジェクト: claudkwt/KivyGame
 def __init__(self, **kwargs):
     Button.__init__(self, **kwargs)
     self.size_hint = (0.1,0.1)
     self.background_normal = 'heart-04.png'
コード例 #13
0
 def __init__(self, whos_stone, row, col):
     Button.__init__(self)
     self.whos_stone = whos_stone  #משתנה זה שומר למי שייח המשבצת
     self.row = row  #משתנה זה שומר את השורה בא נימצאת המשבצת
     self.col = col  #משתנה זה שומר את העמודה בא נימצאת המשבצת
コード例 #14
0
 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"
コード例 #15
0
ファイル: main.py プロジェクト: scavpy/chromio
 def __init__(self, **kw):
     Button.__init__(self, **kw)
     self.background_color=COLOURS[self.index]
コード例 #16
0
 def __init__(self, just_calc_app, **kwargs):
     Button.__init__(self, **kwargs)
     self.just_calc_app = just_calc_app
     self.customize()
コード例 #17
0
ファイル: button.py プロジェクト: 2xR/legacy
 def __init__(self, **kwargs):
     KivyButton.__init__(self, **kwargs)
     Clickable.__init__(self)
コード例 #18
0
ファイル: demo.py プロジェクト: Coffelius/KinectTouch
 def __init__(self):
     Button.__init__(self);
     self.start=None
     self.frame=0
コード例 #19
0
ファイル: TouchButton.py プロジェクト: thica/ORCA-Remote
 def __init__(self, **kwargs):
     Button.__init__(self, **kwargs)
     cOrcaButtonBehaviour.__init__(self, **kwargs)
コード例 #20
0
ファイル: main.py プロジェクト: miikama/kiltispiikki
 def __init__(self,account, **kv):
     Button.__init__(self, **kv)
     self.account = account
コード例 #21
0
 def __init__(self, *args, **kwargs):
     global fingerkeylist
     fingerkeylist.append(self)
     Button.__init__(self, *args, **kwargs)
コード例 #22
0
 def __init__(self,**kwargs):
     Button.__init__(self,**RemoveNoClassArgs(dInArgs=kwargs,oObject=Button))
     cOrcaButtonBehaviour.__init__(self,**kwargs)
コード例 #23
0
ファイル: apcmini.py プロジェクト: stuaxo/apcminimu
 def __init__(self, note, *args, **kwargs):
     self.note = note
     self.light_color = OFF
     Button.__init__(self, *args, **kwargs)
コード例 #24
0
ファイル: __main__.py プロジェクト: kuiqejw/digital-world
 def __init__(self, **kwargs):
     Button.__init__(self, **kwargs)
     self.texts = ['Programming is fun', 'It is fun to program']
     self.text = self.texts[0]
コード例 #25
0
ファイル: printingGUI.py プロジェクト: jerryllim/afRPIsens
 def __init__(self, number, **kwargs):
     Button.__init__(self, **kwargs)
     self.number = number
     self.set_default_text()
コード例 #26
0
ファイル: player.py プロジェクト: pylover/chakameh
 def __init__(self, **kwargs):
     Button.__init__(self,**kwargs)        
コード例 #27
0
 def __init__(self, **kargs):
     Button.__init__(kargs)
     self.a = 0
コード例 #28
0
ファイル: ns_widgets.py プロジェクト: tnason/NetSeq
 def __init__(self, **kwargs):
     """Create new NSDisableButton"""
     Button.__init__(self, **kwargs)
     self.default_text = "[color=%s]" + self.text + "[/color]"
     self.markup = True
     self.enable()
コード例 #29
0
 def __init__(self, **kwargs):
     Button.__init__(self, **kwargs)
     self.text = 'Slide me'
コード例 #30
0
ファイル: main.py プロジェクト: maru-sama/sonoscontroller
 def __init__(self, sonos, **kwargs):
     Button.__init__(self, **kwargs)
     self.controller = sonos
     self.text = sonos.group.label
コード例 #31
0
 def __init__(self, **kwargs):
     Button.__init__(self, **kwargs)
     self.change_values = [15, 5]
     Clock.schedule_interval(self.update_method, 1 / 120)
コード例 #32
0
 def __init__(self, **kwargs):
     Button.__init__(self, **kwargs)
     self.font_name = "/usr/share/fonts/truetype/freefont/FreeMono.ttf"
     self.font_size = 72
コード例 #33
0
ファイル: main.py プロジェクト: miikamakela/guild-room-tab
 def __init__(self,account, **kv):
     Button.__init__(self, **kv)
     self.account = account
コード例 #34
0
ファイル: Typing.py プロジェクト: claudkwt/KivyGame
 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'
コード例 #35
0
    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"))
コード例 #36
0
 def __init__(self,**kwargs):
     Button.__init__(self,**RemoveNoClassArgs(kwargs,Button))
     cOrcaButtonBehaviour.__init__(self,**kwargs)
コード例 #37
0
ファイル: dene4.py プロジェクト: mustafa-altinisik/test2
 def __init__(self):
     Button.__init__(self)
     self.sayi = 1
     self.text = "Basiniz, sayi = %d" %self.sayi
     self.on_press = self.arttir
コード例 #38
0
ファイル: main.py プロジェクト: ebcabaybay/swiftarm
 def __init__(self):
     Button.__init__(self, text='DHT lookup\n')
コード例 #39
0
 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)
コード例 #40
0
 def __init__(self, **kwargs):
     Button.__init__(self, **kwargs)
コード例 #41
0
 def __init__(self, *args, **kws):
     kws.update(background_color=[1, 1, 1, 1])
     Button.__init__(self, *args, **kws)
     self.border = [16, 16, 30, 16]