Exemple #1
0
    def show_result(self, type):
        lbl = Label(font_size='64sp', opacity=1, font_name='modak',
            size_hint=(None, None), size=self.painter.size, pos=self.painter.pos)
        self.add_widget(lbl)

        if type == 'good':
            msgs = ('Good work!', 'Perfect!', 'Well done!', 'Not bad!', 'Excellent!', 'Keep it up!')
            lbl.color = colors['green']
            lbl.text = random.choice(msgs)
            self.lbl_timer.color = colors['green']
        elif type == 'bad':
            lbl.color = colors['red']
            lbl.text = 'Try again!'
            self.lbl_timer.color = colors['red']

        self.lbl_timer.bold = True

        def start_anim(dt):
            change_opacity = Animation(opacity=0.1, duration=.3)
            change_opacity.start(lbl)

            def restore(dt):
                self.remove_widget(lbl)
                self.lbl_timer.color = (0, 0, 0, 1)
                self.lbl_timer.bold = False
            Clock.schedule_once(restore, .3)
        Clock.schedule_once(start_anim, .3)
 def makeMilestoneLayout(self, tid, milestone = None, oldScore=None):
     milestone2 = getPreviousMilestone(tid, milestone)
     newScore = getScore(tid, milestone2, milestone)
     if oldScore is None:
         oldScore = newScore
     scoreLayout = GridLayout(cols=1, spacing=10, size_hint_y = None)
     milestoneButton = Button(text=getDateString(milestone, False), font_size='16sp', size_hint_y = None, height=50)
     milestoneButton.bind(on_press=self.milestoneMenu(tid, milestone))
     scoreLayout.add_widget(milestoneButton)
     progressLayout = BoxLayout(orientation='horizontal')
     prevScoreMilestone = Label(text=getScoreText(oldScore))
     prevScoreMilestone.color = (1,1-float(prevScoreMilestone.text[:-1])/100,1-float(prevScoreMilestone.text[:-1])/100,1)
     progressLayout.add_widget(prevScoreMilestone)
     scoreProgress = ProgressBar(max=0.1)
     scoreProgress.value = oldScore % 0.1
     progressLayout.add_widget(scoreProgress)
     nextScoreMilestone = Label(text=getScoreText(oldScore, True))
     nextScoreMilestone.color = (1,1-float(nextScoreMilestone.text[:-1])/100,1-float(nextScoreMilestone.text[:-1])/100,1)
     nextScoreMilestone.bold = nextScoreMilestone.text == '100%'
     progressLayout.add_widget(nextScoreMilestone)       
     Clock.schedule_interval(self.incrementScoreProgress(scoreProgress, prevScoreMilestone, nextScoreMilestone, oldScore, newScore), 0.1)
     scoreLayout.add_widget(progressLayout)
     scoreLabel = Label(text=str(int(100*newScore))+"%")
     if getNextMilestone(tid) == milestone:
         #expScore = newScore * (milestone-time.time()) / (time.time()-milestone2)
         idealScore = newScore + (milestone-time.time())/(milestone-milestone2)            
         scoreLabel.text += ' ('+ str(int(100*idealScore))+"%)"
     scoreLabel.color = (1,1-newScore,1-newScore,1)
     scoreLabel.bold = newScore>=0.99
     scoreLayout.add_widget(scoreLabel)
     return scoreLayout
Exemple #3
0
    def update_tuner(self, note_name, cents):
        tuner_page = self.screens[5].layout
        tuner_page.clear_widgets()

        guide = Label()
        label = Label()
        title = Label()

        guide.text = "E2 A2 D3 G3 B3 E4"
        guide.font_size = '25dp'

        cents = cents * 100

        # text to tune up or down
        tuner_text = ''
        label.color = [1, 0, 0, 1]

        if np.greater(-10.0, cents):
            tuner_text = 'Tune Up \n{:+.2f} cents'.format(cents)

        if np.greater(cents, 10.0):
            tuner_text = 'Tune Down \n{:+.2f} cents'.format(cents)

        if tuner_text == '':
            tuner_text = 'In Tune \n{:+.2f} cents'.format(cents)
            label.color = [0, 1, 0, 1]

        title.text = tuner_text
        title.font_size = '25dp'
        label.text = note_name
        label.font_size = '100dp'

        tuner_page.add_widget(guide)
        tuner_page.add_widget(title)
        tuner_page.add_widget(label)
    def __activate_no_connection_screen(self):
        """
        Warning screen about - No connection Available
        :return:
        """
        # Menu Background
        self.bckg_image = get_background(picture_path='pictures/menu_background.png')
        self.add_widget(self.bckg_image)

        # No connection label text
        no_connection_l = Label(text='[b]No Internet connection available ![/b]', markup=True)
        no_connection_l.font_size = FONT_SIZE_HEADLINES
        no_connection_l.bold = True
        no_connection_l.color = [0.8, 0.8, 0.8, 0.5]
        no_connection_l.pos_hint = {'x': .0, 'y': .3}
        self.add_widget(no_connection_l)

        # No connection label description
        no_connection_l = Label(text='Please check or activate your data connection.')
        no_connection_l.font_size = 47
        no_connection_l.bold = True
        no_connection_l.color = [0.8, 0.8, 0.8, 0.5]
        no_connection_l.pos_hint = {'x': .0, 'y': .0}
        self.add_widget(no_connection_l)

        # Main menu button
        self.main_menu_b = Button(text='Main menu', font_size=FONT_SIZE_BUTTON, size_hint=SIZE_HINT_BUTTON_LEVELS,
                                  pos_hint={'x': .4, 'y': .2})
        self.main_menu_b.bind(on_press=self.__activate_menu)
        self.add_widget(self.main_menu_b)
Exemple #5
0
    def __init__(self, **kwargs):
        super().__init__(**kwargs)
        self.orientation = 'vertical'

        # simple label
        label1 = Label()
        label1.text = 'Hello Florian, \nWhat\'s up ?'
        label1.font_size = 42
        label1.bold = True
        label1.underline = True
        label1.halign = 'center'
        label1.color = (0, 1, 0, 1)
        self.add_widget(label1)

        # markup text
        label2 = Label()
        label2.text = '[size=30]I try to [u]code[/u] a [b]kivy app[/b] ![/size]'
        label2.halign = 'center'
        label2.markup = True
        label2.color = (0, 0, 1, 1)
        self.add_widget(label2)

        # unicode text
        label3 = Label()
        label3.text = 'هل يمكن تأجير عربات للأطفال؟'
        label3.font_name = 'DejaVuSans'
        self.add_widget(label3)

        # Icons text
        label4 = Label()
        label4.font_size = 60
        label4.text = '\uF00A'
        label4.font_name = 'Icons'
        self.add_widget(label4)
Exemple #6
0
    def __init__(self, **kwargs):
        super(SignInScreen, self).__init__(**kwargs)

        title_label = Label(text="Argus Vision", markup=True)
        title_label.pos = (492, 600)
        title_label.size_hint = (None, None)
        title_label.font_size = (40)
        title_label.color = (0, 0, 0, 1)


        email_input = TextInput(hint_text='Email Address')
        email_input.focus = True
        email_input.write_tab = False
        email_input.multiline = False
        email_input.pos = (410, 450)
        email_input.size_hint = (None, None)
        email_input.size = (280, 30)
        self.email_input = email_input

        password_input = TextInput(hint_text='Password')
        password_input.password = True
        password_input.write_tab = False
        password_input.multiline = False
        password_input.pos = (410, 390)
        password_input.size_hint = (None, None)
        password_input.size = (280, 30)
        self.password_input = password_input

        login_button = Button(text="Login")
        login_button.background_color = (0.4, 0.5, 0.6, 1)
        login_button.pos =(450, 250)
        login_button.size_hint = (None, None)
        login_button.size = (200, 50)

        signup_button = Button(text="Sign Up")
        signup_button.background_color = (0.4, 0.5, 0.6, 1)
        signup_button.pos = (450, 180)
        signup_button.size_hint = (None, None)
        signup_button.size = (200, 50)

        forgot_pw = Label(text="[ref=][color=0000ff]Forgot your password?[/color][/ref]", markup=True)
        forgot_pw.pos = (500, 100)
        forgot_pw.size_hint = (None, None)
        forgot_pw.font_size = (16)
        forgot_pw.color = (0, 0, 0, 1)
        self.forgot_pw_text = ""

        signup_button.bind(on_release=self.go_signup)
        forgot_pw.bind(on_ref_press=self.forgot_pw)
        login_button.bind(on_release=self.login ) # partial(self.login,email_input.text,password_input.text))
        Window.bind(on_key_down=self.key_press)

        self.add_widget(title_label)
        self.add_widget(email_input)
        self.add_widget(password_input)
        self.add_widget(login_button)
        self.add_widget(forgot_pw)
        self.add_widget(signup_button)
Exemple #7
0
 def aviso(self, txt):
     the_content = Label(text = txt)
     the_content.color = (1,1,1,1)
     popup = Popup(title='PIM',
         content=the_content, size_hint_y=.25, title_align='center')
         #content = the_content, size_hint=(None, None), size=(350, 150))
     popup.open()
Exemple #8
0
    def camera_screen(self):
        self.manager.get_screen(
            'main').ids.btn_camera.color = get_color_from_hex('#2196F3')
        self.manager.get_screen(
            'main').ids.btn_home.color = get_color_from_hex('#FFFFFF')
        self.manager.get_screen(
            'main').ids.btn_user.color = get_color_from_hex('#FFFFFF')

        self.manager.get_screen('main').ids.master.clear_widgets()

        camera_layout = GridLayout()
        camera_layout.id = 'camera_layout'
        camera_layout.spacing = (0, 0.5)
        camera_layout.padding = 40, 10, 40, 10
        camera_layout.cols = 1
        camera_layout.row_default_height = self.height * 0.25
        camera_layout.row_force_default = True

        lbl_camera = Label()
        lbl_camera.id = 'lbl_camera'
        lbl_camera.color = get_color_from_hex('#212121')
        lbl_camera.text = 'Camera Layout'

        self.manager.get_screen('main').ids[camera_layout.id] = \
            WeakProxy(camera_layout)

        self.manager.get_screen('main').ids[lbl_camera.id] = \
            WeakProxy(lbl_camera)

        self.manager.get_screen('main').ids.master.\
            add_widget(camera_layout)

        self.manager.get_screen('main').ids.camera_layout.\
            add_widget(lbl_camera)
Exemple #9
0
    def __init__(self, **kw):
        """Constructor: Makes a new Panel for drawing shapes
        
        Precondition: **kw are Kivy key-word arguments"""
        # Pass Kivy arguments to super class.
        super(Panel, self).__init__(**kw)

        # Need kivy.metrics to handle retina Macs properly
        rsize = [0, 0]
        rsize[0] = self.size[0] * dp(1)
        rsize[1] = self.size[0] * dp(1)

        # Make the background solid white
        color = Color(1.0, 1.0, 1.0, 1.0)
        self.canvas.add(color)
        rect = Rectangle(pos=self.pos, size=rsize)
        self.canvas.add(rect)

        # Add the label
        label = Label(text="Hello World!")
        label.color = [0.0, 0.0, 0.0, 1.0]
        label.size_hint = (1, 1)
        label.font_size = 48 * dp(1)  # Again, retina Macs
        label.bold = True
        self.add_widget(label)
 def extended_dict_to_grid(self, songs_dict):
     """ wprowadza do grid layout 2kolumnowe lisy, gdzie jest guzik do zaznacznia odzanczania zapisujący url
      zaznaczonych utworów, jeśli trafi na rozdziałke to nie wprowadza guzika"""
     # print(" 399 cmd.py: ", songs_dict)
     self.cols = 2
     self.size_hint = (1, 1 + (len(songs_dict) / 10))
     self.btn_extended_list = []
     for key in songs_dict:
         wid = Label(text=key,
                     size_hint_x=0.9,
                     color=(1, 1, 1, 1),
                     font_name='Arial',
                     font_size=int(self.inst_main_chill_layout.width / 55))
         if key == "↑ New, ↓ Old" or key == 'Error' or \
                 key == 'Your daily limit expires' or key == 'Invalid channel name':
             but = Label(size_hint_x=0.1)
             wid.color = (0.8980392156862745, 0.6274509803921569,
                          0.8588235294117647, 1)
         else:
             but = Button(size_hint_x=0.1,
                          background_normal=key,
                          background_down=songs_dict[key],
                          background_color=(0.8980392156862745,
                                            0.6274509803921569,
                                            0.8588235294117647, 1))
             but.bind(on_press=self.song_btn_press)
             self.btn_extended_list.append(but)
         self.add_widget(but)
         self.add_widget(wid)
Exemple #11
0
 def AddKanji(self, kan):
     self.kanLayout.clear_widgets()
     label = Label(text=kan)
     label.font_name = "YuGothM.ttc"
     label.font_size = 115
     label.color = [0, 0, 0, 1]
     self.kanLayout.add_widget(label)
Exemple #12
0
 def errorWidget(message):
     widget = Label(text=message)
     widget.font_size = 45
     widget.bold = True
     widget.color = (1, 0, 0, 0.75)
     widget.pos_hint = {"top": .66}
     return widget
    def prepare_selfie_email(self, instance):
        if(self.selected_selfie_source!=None):
            print("selected a selfie to send by email!")
            print("email address is:",self.sendEmailInput.text)
            if re.match("[^@]+@[^@]+\.[^@]+", self.sendEmailInput.text):
                print("Syntactically Valid Email Address!")
                print(self.selected_selfie_source)
##                dispText = "Sending Email to: "+self.sendEmailInput.text
##                labelAnimation = Label(text=dispText,pos=(700,0), font_size=26) #, color=(255,0,0,1)
##                self.GUI_widget.add_widget(labelAnimation)
##                Animation(opacity=0, duration=3).start(labelAnimation)
                #Start Email Transmission Procedure
                self.send_selfie_email(self.sendEmailInput.text, self.selected_selfie_source)
                dispText = "Sent Email to: "+self.sendEmailInput.text
                labelAnimation = Label(text=dispText,pos=(700,0), font_size=26) #, color=(255,0,0,1)
                self.GUI_widget.add_widget(labelAnimation)
                Animation(opacity=0, duration=5).start(labelAnimation)
            else:
                print("Syntactically Invalid Email Address!")
                dispText = "Invalid Email Syntax!"
                labelAnimation = Label(text=dispText,pos=(700,0), font_size=18) #, color=(255,0,0,1)
                self.GUI_widget.add_widget(labelAnimation)
                Animation(opacity=0, duration=5).start(labelAnimation)
        else:
            print("there is no selected selfie!")
            dispText = "Need To Select Selfie!"
            labelAnimation = Label(text=dispText,pos=(850,320), font_size=34) #, color=(255,0,0,1)
            labelAnimation.color = [1,0,0,1]
            self.GUI_widget.add_widget(labelAnimation)
            Animation(opacity=0, duration=5).start(labelAnimation)            
        return
Exemple #14
0
 def TituloGrafica(self, nombre):
     with self.wid.canvas:
         lblX = Label()
         lblX.pos = 370, 280
         lblX.text = str(nombre)
         lblX.color = (0, 0, 0)
         self.wid.add_widget(lblX)
Exemple #15
0
 def NombreX(self, nombre):
     with self.wid.canvas:
         lblX = Label()
         lblX.pos = 350, -37
         lblX.text = str(nombre)
         lblX.color = (0, 0, 0)
         self.wid.add_widget(lblX)
Exemple #16
0
    def user_screen(self):
        self.manager.get_screen(
            'main').ids.btn_camera.color = get_color_from_hex('#FFFFFF')
        self.manager.get_screen(
            'main').ids.btn_home.color = get_color_from_hex('#FFFFFF')
        self.manager.get_screen(
            'main').ids.btn_user.color = get_color_from_hex('#2196F3')

        self.manager.get_screen('main').ids.master.clear_widgets()

        user_layout = GridLayout()
        user_layout.id = 'user_layout'
        user_layout.spacing = (0, 0.5)
        user_layout.padding = 40, 10, 40, 10
        user_layout.cols = 1
        user_layout.row_default_height = self.height * 0.25
        user_layout.row_force_default = True

        lbl_user = Label()
        lbl_user.id = 'lbl_home'
        lbl_user.color = get_color_from_hex('#212121')
        lbl_user.text = 'User Layout'

        self.manager.get_screen('main').ids[user_layout.id] = \
            WeakProxy(user_layout)

        self.manager.get_screen('main').ids[lbl_user.id] = \
            WeakProxy(lbl_user)

        self.manager.get_screen('main').ids.master.\
            add_widget(user_layout)

        self.manager.get_screen('main').ids.user_layout.\
            add_widget(lbl_user)
Exemple #17
0
    def home_screen(self):
        self.manager.get_screen(
            'main').ids.btn_camera.color = get_color_from_hex('#FFFFFF')
        self.manager.get_screen(
            'main').ids.btn_home.color = get_color_from_hex('#2196F3')
        self.manager.get_screen(
            'main').ids.btn_user.color = get_color_from_hex('#FFFFFF')

        self.manager.get_screen('main').ids.master.clear_widgets()

        home_layout = GridLayout()
        home_layout.id = 'home_layout'
        home_layout.spacing = (0, 0.5)
        home_layout.padding = 40, 10, 40, 10
        home_layout.cols = 1
        home_layout.row_default_height = self.height * 0.25
        home_layout.row_force_default = True

        lbl_home = Label()
        lbl_home.id = 'lbl_home'
        lbl_home.color = get_color_from_hex('#212121')
        lbl_home.text = 'Home Layout'

        self.manager.get_screen('main').ids[home_layout.id] = \
            WeakProxy(home_layout)

        self.manager.get_screen('main').ids[lbl_home.id] = \
            WeakProxy(home_layout)

        self.manager.get_screen('main').ids.master.\
            add_widget(home_layout)

        self.manager.get_screen('main').ids.lbl_home.\
            add_widget(lbl_home)
Exemple #18
0
    def setLayout(self):
        self.size = (1500, 1000)

        with self.canvas:
            Color(.532345, 1.0, .742, 1.0)
            Rectangle(size=self.size)

        sound_board_layout = AnchorLayout()
        sound_board_layout.anchor_x = "center"
        sound_board_layout.anchor_y = "top"
        sound_board_layout.size = self.size
        sound_board_layout.pos = self.pos
        sound_board_layout.size_hint = (1.0, 1.0)
        sound_board_layout.spacing = 50

        self.title_layout.orientation = "vertical"
        self.title_layout.size_hint = (1.0, 1.0)
        self.title_layout.spacing = 10

        title_label = Label()
        title_label.text = "Soundboard"
        title_label.color = [.6, .2, 1, .5]
        title_label.font_size = 50
        title_label.font_name = "C:\\Windows\\Fonts\\Arial"
        title_label.size_hint = (1, 1)
        self.title_layout.add_widget(title_label)

        self.set_settings_layout()

        self.set_sounds()

        self.title_layout.add_widget(self.grid_layout)
        sound_board_layout.add_widget(self.title_layout)

        self.add_widget(sound_board_layout)
Exemple #19
0
    def build(self):

        layout = BoxLayout(orientation='vertical')

        inputKeyLabel = Label(text='Enter api key: ', size_hint_y=None)
        inputKeyLabel.height = 30
        inputKeyField = TextInput(
            text=
            'xoxp-3278486248-78952291655-256623167682-8311d81d495b53995888c2a3d8c1e52f',
            multiline=False,
            size_hint_y=None)
        inputKeyField.height = 30

        inputNameLabel = Label(text='Enter bot name: ', size_hint_y=None)
        inputNameLabel.height = 30
        inputNameField = TextInput(text='Default Bot Name',
                                   multiline=False,
                                   size_hint_y=None)
        inputNameField.height = 30

        inputChannelLabel = Label(text='Enter chanel name: ', size_hint_y=None)
        inputChannelLabel.height = 30
        inputChannelField = TextInput(text='test',
                                      multiline=False,
                                      size_hint_y=None)
        inputChannelField.height = 30

        inputMessLabel = Label(text='Enter message: ', size_hint_y=None)
        inputMessLabel.height = 30
        inputMessField = TextInput(text='', size_hint_y=None, multiline=False)
        inputMessField.height = 30

        botStatusLabel = Label(text='Bot Status: ', size_hint_y=None)
        botStatusLabel.height = 30

        botStatus = Label(text='')
        botStatus.color = (1, 0, 0)

        runButton = Button(text='Run Slackbot')
        runButton.height = 30

        def start_bot(instance):
            with Session() as session:
                s = SlackCrawler(inputKeyField.text, session,
                                 inputNameField.text)
                s.start()

        runButton.bind(on_press=start_bot)
        layout.add_widget(inputKeyLabel)
        layout.add_widget(inputKeyField)
        layout.add_widget(inputNameLabel)
        layout.add_widget(inputNameField)
        layout.add_widget(inputChannelLabel)
        layout.add_widget(inputChannelField)
        layout.add_widget(inputMessLabel)
        layout.add_widget(inputMessField)
        layout.add_widget(botStatusLabel)
        layout.add_widget(botStatus)
        layout.add_widget(runButton)
        return layout
 def create_labels(self):
     """Create labels from the list entries"""
     for name in self.names_in_list:
         temp_label = Label(text=name, id=name)
         temp_label.font_size = 24
         temp_label.color = (0, 1, 1, 1)
         self.root.ids.list_of_labels.add_widget(temp_label)
Exemple #21
0
 def aviso(self, txt):
     the_content = Label(text = txt)
     the_content.color = (1,1,1,1)
     popup = Popup(title='PIM',
         content=the_content, size_hint_y=.25, title_align='center')
         #content = the_content, size_hint=(None, None), size=(350, 150))
     popup.open()
Exemple #22
0
    def RemplissageJours(self):
        calendrier = calendar.monthcalendar(self.selectionAnnee,
                                            self.selectionMois)

        for d in self.listeJours:
            b = Label(text=d, markup=True)
            self.box_grille.add_widget(b)

        for wk in range(len(calendrier)):
            for d in range(0, 7):
                dateOfWeek = calendrier[wk][d]
                if not dateOfWeek == 0:
                    date = datetime.date(self.selectionAnnee,
                                         self.selectionMois, dateOfWeek)
                    b = Button(text=str(dateOfWeek))
                    if date == self.selectionDate:
                        b.background_color = get_color_from_hex("30a3cc")
                        b.background_normal = ""
                    if date == datetime.date.today():
                        b.color = (1, 0, 0, 1)
                    b.bind(on_release=self.on_release)
                else:
                    b = Label(text='')
                self.box_grille.add_widget(b)

        # Mise à jour du titre
        self.ctrl_titre.text = "[b]" + self.listeMois[
            self.selectionMois - 1] + " " + str(self.selectionAnnee) + "[/b]"
Exemple #23
0
 def widgetWithSuccessMessage(message):
     widget = Label(text=message)
     widget.font_size = 45
     widget.bold = True
     widget.color = (0, 1, 0, 0.75)
     widget.pos_hint = {"top": .66}
     return widget
Exemple #24
0
 def RemplissageJours(self):
     calendrier = calendar.monthcalendar(self.selectionAnnee, self.selectionMois)
     
     for d in self.listeJours :
         b = Label(text=d, markup=True)
         self.box_grille.add_widget(b)
      
     for wk in range(len(calendrier)):
         for d in range(0,7):    
             dateOfWeek = calendrier[wk][d]
             if not dateOfWeek == 0:
                 date = datetime.date(self.selectionAnnee, self.selectionMois, dateOfWeek)
                 b = Button(text=str(dateOfWeek))
                 if date == self.selectionDate :
                     b.background_color = get_color_from_hex("30a3cc")
                     b.background_normal = ""
                 if date == datetime.date.today() :
                     b.color = (1, 0, 0, 1)
                 b.bind(on_release = self.on_release)
             else:
                 b = Label(text='')
             self.box_grille.add_widget(b)   
     
     # Mise à jour du titre
     self.ctrl_titre.text = "[b]" + self.listeMois[self.selectionMois-1] + " " + str(self.selectionAnnee) + "[/b]"
Exemple #25
0
    def show_score(self, score, x, y):
        """Show the score of a punch"""
	label = Label(text=str(score), font_size=20, 
			pos=(x+30,y+30), size=(0,0))
	label.color=[random.random(), random.random(), random.random(), 1]

        self.paint.add_widget(label);
        Clock.schedule_interval(partial(fade,parent=self,wdgt=label),.01)
Exemple #26
0
 def on_text(self, *_):
     # Just get large texture:z
     l = Label(text=self.text)
     l.font_size = '1000dp'  # something that'll give texture bigger than phone's screen size
     l.color = self.color
     l.texture_update()
     # Set it to image, it'll be scaled to image size automatically:
     self.texture = l.texture
Exemple #27
0
    def buildMeanGrid(self, senseArr):
        self.meanings.clear_widgets()
        self.meanings.rows = len(senseArr)
        for sense in senseArr:
            meanStr = ""
            posStr = ""
            for pos in sense.getPos():
                posStr += (pos + "\n")
            posLab = Label(text=posStr)
            posLab.color = [0, 0, 0, 1]
            self.meanings.add_widget(posLab)

            for mean in sense.getMean():
                meanStr += (mean + "\n")
            meanLab = Label(text=meanStr)
            meanLab.color = [0, 0, 0, 1]
            self.meanings.add_widget(meanLab)
Exemple #28
0
 def mostrar_palabras(self):
     if self.palabra:
         self.gl_palabras.clear_widgets()
         consonante, asonante = riman_con(self.palabra,
                                          Configuracion.obtener("db"))
         l = Label()
         l.text = "Rima consonante"
         l.size_hint_y = None
         l.height = 60
         l.color = [0, 0, 0, 1]
         self.gl_palabras.add_widget(l)
         if consonante:
             for c in consonante:
                 b = Button(text=c)
                 b.size_hint_y = None
                 b.height = 60
                 b.bind(on_press=self.btn_palabra_on_press)
                 self.gl_palabras.add_widget(b)
         else:
             l = Label()
             l.text = "[ninguna]"
             l.size_hint_y = None
             l.height = 60
             l.color = [0, 0, 0, 1]
             self.gl_palabras.add_widget(l)
         l = Label()
         l.text = "Rima asonante"
         l.size_hint_y = None
         l.height = 60
         l.color = [0, 0, 0, 1]
         self.gl_palabras.add_widget(l)
         if asonante:
             for c in asonante:
                 b = Button(text=c)
                 b.size_hint_y = None
                 b.height = 60
                 b.bind(on_press=self.btn_palabra_on_press)
                 self.gl_palabras.add_widget(b)
         else:
             l = Label()
             l.text = "[ninguna]"
             l.size_hint_y = None
             l.height = 60
             l.color = [0, 0, 0, 1]
             self.gl_palabras.add_widget(l)
Exemple #29
0
 def GetVideoConversionUI(self):
     gl = GridLayout()
     gl.cols = 1
     lab_title = Label(text='Video Format Converter')
     lab_title.outline_color = (1, 1, 1, 1)
     lab_title.color = (0, 0, 0, 1)
     lab_title.outline_width = 2
     gl.add_widget(lab_title)
     return gl
    def on_release(self):
        the_content = Label(text='OPEN SOURCE KIVY PROJECT \n COMIC CREATOR')
        the_content.color = (1, 0, 0, 1)

        popup = Popup(title='Pop Up',
                      content=the_content,
                      size_hint=(None, None),
                      size=(350, 150))
        popup.open()
    def build(self):
        c = CustomLayout()
        c.add_widget(
            AsyncImage(
                source="Login/background-login.jpg"))

        lbl = Label(text='Bem vindo')
        lbl.font_size= '60sp'
        lbl.bold= True
        lbl.color= [1,1,1,1]
        lbl.size_hint = None, None
        lbl.height = 30
        lbl.width = 300
        lbl.y = 370
        lbl.x = 250

        bt = Button(text="Iniciar captura de face")
        bt.size_hint = None, None
        bt.height = 50
        bt.width = 200
        bt.y = 210
        bt.x = 300
        def callback(self):
#inserir codigo de reconhecimento facial-captura de fotos
            bt.bind(on_press=callback)


        bt2 = Button(text="Iniciar Treino")
        bt2.size_hint = None, None
        bt2.height = 50
        bt2.width = 200
        bt2.y = 150
        bt2.x = 300
        def callback(self):
# inserir codigo de treino
            bt2.bind(on_press=callback)


        bt3 = Button(text="Iniciar Reconhecimento")
        bt3.size_hint = None, None
        bt3.height = 50
        bt3.width = 200
        bt3.y = 90
        bt3.x = 300


        def callback(self):
# inserir codigo de visualização do reconhecimento
            bt3.bind(on_press=callback)

        c.add_widget(lbl)
        c.add_widget(bt)
        c.add_widget(bt2)
        c.add_widget(bt3)

        return c
Exemple #32
0
 def __init__(self, capture, fps, **kwargs):
     super(KivyCamera, self).__init__(**kwargs)
     self.capture = capture
     lbl = Label(text=kwargs.get('text', ''))
     lbl.font_size = '60sp'
     lbl.bold = True
     lbl.color = [0, 0, 1, 0.5]
     self.add_widget(lbl)
     self.orientation = 'vertical'
     Clock.schedule_interval(self.update, 1.0 / fps)
Exemple #33
0
    def create_header(self, header, box, color=(1, 1, 1, 1)):
        row = BoxLayout(orientation="horizontal", size_hint_y=None)

        for name, hint_x in header:
            label = Label(text=name, size_hint_x=hint_x)
            label.color = color
            row.add_widget(label)
        if box == "return":
            return row
        box.add_widget(row)
Exemple #34
0
    def activate_help(self, event):
        """
        Activate Help for game
        :return:
        """
        self.clear_widgets()

        # Menu Background
        self.bckg_image = get_background(picture_path='pictures/menu_background.png')
        self.add_widget(self.bckg_image)

        # Levels label
        help_l = Label(text='[b]HELP[/b]', markup=True)
        help_l.font_size = FONT_SIZE_HEADLINES
        help_l.bold = True
        help_l.color = [0.8, 0.8, 0.8, 0.5]
        help_l.pos_hint = {'x': .0, 'y': .35}
        self.add_widget(help_l)

        # Help text
        text = \
        """
        [b]play game[/b]     - Goal of the game is to flight through galaxy without collision
                                 with another object
                               - Just touch the 'slider' in the bottom of the screen and move
                                 to the right or to the left side

        [b]speed[/b]          - In configuration screen you can choose among SLOW,
                                MEDIUM or FAST speed

        [b]sound[/b]          - In configuration screen you can switch sound ON or OFF
        """
        help_text = Label(text=text, markup=True)
        help_text.font_size = 22
        help_text.color = [0.97, 0.97, 0.97, 0.9]
        help_text.pos_hint = {'x': 0.0, 'y': 0.0}
        self.add_widget(help_text)

        # Main menu button
        self.main_menu_b = Button(text='Main menu', font_size=FONT_SIZE_BUTTON, size_hint=SIZE_HINT_BUTTON_NORMAL,
                                  pos_hint={'x': .4, 'y': .1})
        self.main_menu_b.bind(on_press=self.__activate_menu)
        self.add_widget(self.main_menu_b)
Exemple #35
0
 def drawTouchPoints(self):
     for touch in self.active_points.values():
         
         # We need to convert kivy y coordinate to GestureWorks y coordinate
         touch_y = int(self.root.height - touch.position.y)
         touch_x = int(touch.position.x)
         
         with self.root.canvas:
             
             # Draw the circles
             Color(*get_color_from_hex('ffe354'))
             Ellipse(pos=(touch_x - 20, touch_y + 20), size=(40,40))
             Line(circle=(touch_x, touch_y + 40, 30, 0, 360), width=2)
     
             # Draw the touchpoint info
             label = Label(text='ID: {}\nX: {} | Y: {}'.format(touch.point_id, touch_x, touch_y))
             label.center_x = touch_x + 80
             label.center_y = touch_y + 80
             label.color = (1,1,1)       
Exemple #36
0
def draws_lines_rho( x0, y0, dx, dy, fzoom, border, xmin, xmax, ymin, ymax, limx, limy, label_y):
    xf = x0 + dx
    yf = y0 + dy

    deca_x = range(xmin, xmax + 1)
    deca_y = range(ymin, ymax + 1)

    scale = [1, 2, 3, 4, 5, 6, 7, 8, 9,
             10, 20, 30, 40, 50, 60, 70, 80, 90,
             100, 200, 300, 400, 500, 600, 700, 800, 900,
             1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000,
             10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000, 90000,
             100000, 200000, 300000, 400000, 500000, 600000, 700000, 800000, 900000,
             1000000, 2000000, 3000000, 4000000, 5000000, 6000000, 7000000, 8000000, 9000000,
             10000000, 20000000, 30000000, 40000000, 50000000, 60000000, 70000000, 80000000, 90000000,
             100000000]

    scale_log = []
    for i in scale:
        scale_log.append(log10(i))

    scale_log_zoom = []
    for i in scale_log:
        scale_log_zoom.append(i * fzoom)

    lay = FloatLayout()
    with lay.canvas:
        Color(rgba=[0, 0, 0, 1])
        Line(points=[x0, y0, xf, y0], width=border)
        Color(rgba=[0, 0, 0, 1])
        Line(points=[x0, y0, x0, yf], width=border)
        Color(rgba=[0, 0, 0, 1])
        Line(points=[xf, y0, xf, yf], width=border)
        Color(rgba=[0, 0, 0, 1])
        Line(points=[x0, yf, xf, yf], width=border)
        Color(rgba=[0, 0, 0, 1])
        Color(rgba=[.2, .2, .2, 1.])
        Ellipse(size=[6, 6], pos=[int(((dx / 3) * 2) + x0 - 23), yf + 7])

        c = 0
        for i in scale_log_zoom:
            if scale[c] > limx:
                continue
            else:
                Color(rgba=[0., 0., 0., 1.])
                Line(points=[i + x0, y0, i + x0, y0 - 5])
                c += 1
        c = 0
        for i in scale_log_zoom:
            if scale[c] > limy:
                continue
            else:
                Color(rgba=[0, 0, 0, 1])
                Line(points=[x0, i + y0, x0 - 5, i + y0])
            c += 1

        c = 0
        for i in scale_log_zoom:
            if scale[c] > limy:
                continue
            else:
                Color(rgba=[0, 0, 0, 1])
                Line(points=[xf, i + y0, xf + 5, i + y0])
            c += 1

        for i in deca_y:

            if deca_y[0] < 0:
                pos = -deca_y[0]

            lb = Label()
            lb.color = [0, 0, 0, 1]
            lb.markup = True
            lb.text = '10' + '[sup][size=10]' + str(i) + '[/size][/sup]'
            lb.size_hint = None, None
            lb.height = 30
            lb.width = 30

            y = int((y0 - 20) + ((i + pos) * fzoom))
            lb.pos = x0 - 35, y
            lay.add_widget(lb)

        for i in deca_x:

            if deca_x[0] < 0:
                pos = -deca_x[0]

            lb = Label()
            lb.color = [0, 0, 0, 1]
            lb.markup = True
            lb.text = '10' + '[sup][size=10]' + str(i) + '[/size][/sup]'
            lb.size_hint = None, None
            lb.height = 30
            lb.width = 30

            x = int((x0 - 20) + ((i + pos) * fzoom))
            lb.pos = x + 5, y0 - 35
            lay.add_widget(lb)

    if label_y == True:
        lb_rho_ohm_meter = LabelRot()
        lb_rho_ohm_meter.size_hint = None, None
        lb_rho_ohm_meter.height = 100
        lb_rho_ohm_meter.width = 25
        lb_rho_ohm_meter.markup = True
        lb_rho_ohm_meter.italic = True
        lb_rho_ohm_meter.text = 'ρ (Ω.m)'
        lb_rho_ohm_meter.color = [0., 0., 0., 1.]
        lb_rho_ohm_meter.center_x = x0 - 40
        lb_rho_ohm_meter.center_y = int(y0 + dy / 2)

        lay.add_widget(lb_rho_ohm_meter)

    bt_rho_xy = PointPlotEX()
    bt_rho_xy.center_x = int(((dx/3) + x0)-20)
    bt_rho_xy.center_y = yf + 10
    lb_rho_xy = Label()
    lb_rho_xy.size_hint = None, None
    lb_rho_xy.height = 30
    lb_rho_xy.width = 30
    lb_rho_xy.center_x = int((dx/3) + x0)
    lb_rho_xy.center_y = yf + 15
    lb_rho_xy.markup = True
    lb_rho_xy.text = 'ρ[sub]xy[/sub]'
    lb_rho_xy.color = [.2, .2, .2, 1.]
    lb_rho_xy.font_size = 23

    lay.add_widget(bt_rho_xy)
    lay.add_widget(lb_rho_xy)


    lb_rho_yx = Label()
    lb_rho_yx.size_hint = None, None
    lb_rho_yx.height = 30
    lb_rho_yx.width = 30
    lb_rho_yx.center_x = int(((dx / 3) * 2) + x0)
    lb_rho_yx.center_y = yf + 15
    lb_rho_yx.markup = True
    lb_rho_yx.text = 'ρ[sub]yx[/sub]'
    lb_rho_yx.color = [.2, .2, .2, 1.]
    lb_rho_yx.font_size = 23


    lay.add_widget(lb_rho_yx)

    return lay
Exemple #37
0
def draws_lines_Z(x0, y0, dx, dy, fzoom,fzoomy, border, xmin, xmax, ymin, ymax, limx, limy, label_y, scale_y, component):
    xf = x0 + dx
    yf = y0 + dy

    deca_x = range(xmin, xmax + 1)
    deca_y = range(ymin, ymax, 5)

    # if limy == 90:
    #     lb_y = [0, 45, 90]
    # elif limy == 180:
    #     lb_y = [0, 90, 180]

    lb_y = [-15, -10, -5, 0, 5, 10, 15]

    #lb_y = [-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

    scale = [1, 2, 3, 4, 5, 6, 7, 8, 9,
             10, 20, 30, 40, 50, 60, 70, 80, 90,
             100, 200, 300, 400, 500, 600, 700, 800, 900,
             1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000,
             10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000, 90000,
             100000, 200000, 300000, 400000, 500000, 600000, 700000, 800000, 900000,
             1000000, 2000000, 3000000, 4000000, 5000000, 6000000, 7000000, 8000000, 9000000,
             10000000, 20000000, 30000000, 40000000, 50000000, 60000000, 70000000, 80000000, 90000000,
             100000000]

    scale_log = []
    for i in scale:
        scale_log.append(log10(i))

    scale_log_zoom = []
    for i in scale_log:
        scale_log_zoom.append(i * fzoom)

    lay = FloatLayout()
    with lay.canvas:
        Color(rgba=[0, 0, 0, 1])
        Line(points=[x0, y0, xf, y0], width=border)
        Color(rgba=[0, 0, 0, 1])
        Line(points=[x0, y0, x0, yf], width=border)
        Color(rgba=[0, 0, 0, 1])
        Line(points=[xf, y0, xf, yf], width=border)
        Color(rgba=[0, 0, 0, 1])
        Line(points=[x0, yf, xf, yf], width=border)
        Color(rgba=[0, 0, 0, 1])
        Color(rgba=[.2, .2, .2, 1.])
        Ellipse(size=[6, 6], pos=[int(((dx / 3) * 2) + x0 + 5), yf + 10])

        c = 0
        for i in scale_log_zoom:
            if scale[c] > limx:
                continue
            else:
                Color(rgba=[0., 0., 0., 1.])
                Line(points=[i + x0, y0, i + x0, y0 - 5])
                c += 1

        for i in deca_y:
            i = int(i * fzoomy)
            Color(rgba=[0., 0., 0., 1.])
            Line(points=[x0 - 5, i + y0, x0, i + y0])

        for i in deca_y:
            i = int(i * fzoomy)
            Color(rgba=[0., 0., 0., 1.])
            Line(points=[xf + 5, i + y0, xf, i + y0])

        if scale_y == True:
            for i in lb_y:

                lb_phi = Label()
                lb_phi.color = [0, 0, 0, 1]
                lb_phi.markup = True
                lb_phi.text = str(i)
                lb_phi.size_hint = None, None
                lb_phi.height = 30
                lb_phi.width = 30

                if limy == 180:
                    y = (i/2 * fzoomy) + y0

                elif limy == 90:
                    y = ((i+15) * fzoomy) + y0

                lb_phi.center_x = xf + 25
                lb_phi.center_y = y

                lay.add_widget(lb_phi)

        for i in deca_x:

            if deca_x[0] < 0:
                pos = -deca_x[0]

            lb = Label()
            lb.color = [0,0,0,1]
            lb.markup = True
            lb.text = '10' + '[sup][size=10]' + str(i) + '[/size][/sup]'
            lb.size_hint = None, None
            lb.height = 30
            lb.width = 30

            x = int((x0 - 15) + ((i + pos) * fzoom))
            lb.pos = x, y0 - 30
            lay.add_widget(lb)

    lb_title = Label()
    lb_title.color = [0, 0, 0, 1.]
    lb_title.font_size = 17
    lb_title.text = 'Z' + component
    lb_title.size_hint = None, None
    lb_title.height = 30
    lb_title.width = 370
    lb_title.center_x = int((lb_title.width/2) + x0) - 25
    lb_title.center_y = yf + 15

    #lay.add_widget(lb_title)

    if label_y == True:

        lb_rho_ohm_meter = LabelRot()
        lb_rho_ohm_meter.size_hint = None, None
        lb_rho_ohm_meter.height = 100
        lb_rho_ohm_meter.width = 25
        lb_rho_ohm_meter.markup =True
        lb_rho_ohm_meter.italic = True
        lb_rho_ohm_meter.text = 'φ (graus)'
        lb_rho_ohm_meter.color = [0., 0., 0., 1.]
        lb_rho_ohm_meter.center_x = x0 - 40
        lb_rho_ohm_meter.center_y = int(y0 + dy/2)

        lay.add_widget(lb_rho_ohm_meter)

    bt_rho_xy = PointPlotEX()
    bt_rho_xy.center_x = int(((dx / 3) + x0) - 50)
    bt_rho_xy.center_y = yf + 14
    lb_rho_xy = Label()
    lb_rho_xy.size_hint = None, None
    lb_rho_xy.height = 30
    lb_rho_xy.width = 30
    lb_rho_xy.center_x = int((dx / 3) + x0 - 20)
    lb_rho_xy.center_y = yf + 15
    lb_rho_xy.markup = True
    lb_rho_xy.text = 'Re Z[sub][size=15]'+ component +'[/size][/sub]'
    lb_rho_xy.color = [.2, .2, .2, 1.]
    lb_rho_xy.font_size = 17

    lay.add_widget(bt_rho_xy)
    lay.add_widget(lb_rho_xy)


    lb_rho_yx = Label()
    lb_rho_yx.size_hint = None, None
    lb_rho_yx.height = 30
    lb_rho_yx.width = 30
    lb_rho_yx.center_x = int(((dx / 3) * 2) + x0 + 40)
    lb_rho_yx.center_y = yf + 15
    lb_rho_yx.markup = True
    lb_rho_yx.text = 'Im Z[sub][size=15]'+ component +'[/size][/sub]'
    lb_rho_yx.color = [.2, .2, .2, 1.]
    lb_rho_yx.font_size = 17


    lay.add_widget(lb_rho_yx)


    return lay
Exemple #38
0
    def __init__(self, classname, parent = None, **kwargs):
        super(FloatLayout, self).__init__(**kwargs)
        students = classname.students
        self.parent = parent
        studentlayout = BoxLayout(orientation='vertical', spacing = 10, size_hint_x = 2)
        overalllayout = BoxLayout(orientation='horizontal', pos=(Window.width/10,Window.height/5), size=(Window.width - Window.width/5, Window.height - Window.height/5))
        studentgenderlayout = BoxLayout(orientation='vertical')
        studentagelayout = BoxLayout(orientation='vertical')
        miletimelayout = BoxLayout(orientation = 'vertical')
        pushupslayout = BoxLayout(orientation = 'vertical')
        curlupslayout = BoxLayout(orientation = 'vertical')
        stretchlayout = BoxLayout(orientation = 'vertical')
        genderlabel = Label(text = 'Gender')
        studentnamelabel = Label(text = '')
        agelabel = Label(text = 'Age')
        miletimelabel = Label(text = 'Mile Time')
        pushupslabel = Label(text = 'Push Ups')
        curlupslabel = Label(text = 'Curl Ups')
        stretchlabel = Label(text = 'Stretch L/R')
        studentlayout.add_widget(studentnamelabel)
        studentgenderlayout.add_widget(genderlabel)
        studentagelayout.add_widget(agelabel)
        miletimelayout.add_widget(miletimelabel)
        pushupslayout.add_widget(pushupslabel)
        curlupslayout.add_widget(curlupslabel)
        stretchlayout.add_widget(stretchlabel)

        #This loop adds in the scores for each student
        for x in students:
            labelname1 = Button(text = x.get_name(), background_normal='buttons/button_normal.png', background_down='buttons/button_down.png') 
            labelname1.bind(on_press=self.parent.student_callback)
            labelname2 = Label(text = x.get_gender()) 
            labelname3 = Label(text = str(x.get_age()))
            labelname4 = Label(text = str(x.get_miletime()))
            labelname5 = Label(text = str(x.get_pushups()))  
            labelname6 = Label(text = str(x.get_curlups()))
            labelname7 = Label(text = str(x.get_stretchl()) + '/' + str(x.get_stretchr())) 

            #Color Text Based on Scores, this is just sample code. We need to expand this based on the standards and age
            #Pass
            if x.get_pushups() >= 0:
                labelname5.color = (0.031372549, 0.768627451, 0.109803922, 1)
            #Fail
            if x.get_curlups() <= 10:
                labelname6.color = (0.82745098, 0.003921569, 0.02745098, 1)

            #Super Saiyan
            if x.get_miletime() >= 0:
                labelname4.color = (1, 0.847058824, 0.109803922, 1)

            studentlayout.add_widget(labelname1)
            studentgenderlayout.add_widget(labelname2)
            studentagelayout.add_widget(labelname3)
            miletimelayout.add_widget(labelname4)
            pushupslayout.add_widget(labelname5)
            curlupslayout.add_widget(labelname6)
            stretchlayout.add_widget(labelname7)



        overalllayout.add_widget(studentlayout)
        overalllayout.add_widget(studentgenderlayout)
        overalllayout.add_widget(studentagelayout)
        overalllayout.add_widget(miletimelayout)
        overalllayout.add_widget(pushupslayout)
        overalllayout.add_widget(curlupslayout)
        overalllayout.add_widget(stretchlayout)
        self.add_widget(overalllayout)
Exemple #39
0
    def init(self):
        global poker_width, poker_height
        poker_width = game.width / 10
        poker_height = game.width / 7

        with self.canvas:
            Color(rgb = [0.0, 0.3, 0.0])
            Rectangle(size = self.size)

        score_pad_hint = Label(text = "NS\nEW")
        score_pad_hint.size = self.width / 16, self.height / 7
        score_pad_hint.bold = True
        score_pad_hint.font_size = 30
        score_pad_hint.color = [1, 1, 1, 1]
        score_pad_hint.pos = 0, self.height - score_pad_hint.height
        self.add_widget(score_pad_hint)

        self.score_pad = ScorePad()
        self.score_pad.size = score_pad_hint.size
        self.score_pad.bold = True
        self.score_pad.font_size = 30
        self.score_pad.color = score_pad_hint.color
        self.score_pad.pos = score_pad_hint.pos[0] + score_pad_hint.width, score_pad_hint.pos[1]
        self.add_widget(self.score_pad)

        self.player_list = []
        for name in "nsew":
            player = Player(name)
            setattr(self, "player_" + name, player)
            self.player_list.append(player)
        self.player_n.next = self.player_w
        self.player_w.next = self.player_s
        self.player_s.next = self.player_e
        self.player_e.next = self.player_n
        self.player_n.buddy = self.player_s
        self.player_s.buddy = self.player_n
        self.player_w.buddy = self.player_e
        self.player_e.buddy = self.player_w

        self.score_pad.refresh()

        self.pk_list = []
        pk_seq = (["s5"] + [c + "j" for c in "rb"] + [c + "5" for c in "hcd"] + [c + n for n in "32" for c in "shcd"] +
                  [c + n for c in "shcd" for n in "akqjt98764"])
        for i, pk_name in enumerate(pk_seq):
            for j in xrange(2):
                pk = Poker(i * 2 + j, pk_name, source = os.path.join("image", "%s.bmp" % pk_name))
                self.add_widget(pk)
                self.pk_list.append(pk)

        self.ok_button = OkButton(text = "OK", font_size = 30)
        self.ok_button.size = self.width / 16, self.width / 32
        self.ok_button.pos = self.width - self.ok_button.width * 2, 20 + poker_height + 30
        self.add_widget(self.ok_button)

        self.thinking_pad = Label(text = "THINKING")
        self.thinking_pad.size = poker_width * 3 / 2, 50
        self.thinking_pad.bold = True
        self.thinking_pad.font_size = 20
        self.thinking_pad.color = [1, 1, 1, 1]
        self.thinking_pad.pos = self.width, self.height
        self.add_widget(self.thinking_pad)

        self.turn = None
        self.start_game()
Exemple #40
0
    def on_press_plot(self):

        self.ids.plot_1_point.clear_widgets()
        self.ids.plot_2_point.clear_widgets()
        self.list_active_file_pplt = []
        for band in site.files_plot.keys():
            for file_pplt in site.files_plot[band]:
                if file_pplt.active == True:
                    self.list_active_file_pplt.append(file_pplt)

        self.list_bt_plot = []

        self.box_view_select.clear_widgets()
        j = 0
        for file_pplt in self.list_active_file_pplt:
            i = 0
            coor_pixel_file_pplt = self.read_file_pplt_to_coord_pixel(file_pplt)
            for T in file_pplt.obj_pplt.activated:

                bt_rho_xy = PointPlot(pos=[coor_pixel_file_pplt[0][i], coor_pixel_file_pplt[1][i]], file_pplt=file_pplt.obj_pplt, i=i)
                bt_rho_xy.cor = file_pplt.obj_pplt.color
                bt_rho_xy.n = i+1

                bt_rho_yx = PointPlotCirc(pos=[coor_pixel_file_pplt[0][i], coor_pixel_file_pplt[2][i]], file_pplt=file_pplt.obj_pplt, i=i)
                bt_rho_yx.cor = file_pplt.obj_pplt.color

                bt_phi_xy = PointPlot(pos=[coor_pixel_file_pplt[3][0][i], coor_pixel_file_pplt[3][1][i]], file_pplt=file_pplt.obj_pplt, i=i)
                bt_phi_xy.cor = file_pplt.obj_pplt.color
                bt_phi_xy.height = 4
                bt_phi_xy.width = 4

                bt_phi_yx = PointPlotCirc(pos=[coor_pixel_file_pplt[4][0][i], coor_pixel_file_pplt[4][1][i]], file_pplt=file_pplt.obj_pplt, i=i)
                bt_phi_yx.cor = file_pplt.obj_pplt.color
                bt_phi_yx.height = 4
                bt_phi_yx.width = 4

                bt_RZ_xx = PointPlot(pos=[coor_pixel_file_pplt[5][i], coor_pixel_file_pplt[6][i]], file_pplt=file_pplt.obj_pplt, i=i)
                bt_RZ_xx.cor = file_pplt.obj_pplt.color
                bt_RZ_xx.height = 4
                bt_RZ_xx.width = 4

                bt_IZ_xx = PointPlotCirc(pos=[coor_pixel_file_pplt[5][i], coor_pixel_file_pplt[7][i]], file_pplt=file_pplt.obj_pplt, i=i)
                bt_IZ_xx.cor = file_pplt.obj_pplt.color
                bt_IZ_xx.height = 4
                bt_IZ_xx.width = 4

                bt_RZ_xy = PointPlot(pos=[coor_pixel_file_pplt[5][i], coor_pixel_file_pplt[8][i]], file_pplt=file_pplt.obj_pplt, i=i)
                bt_RZ_xy.cor = file_pplt.obj_pplt.color
                bt_RZ_xy.height = 4
                bt_RZ_xy.width = 4

                bt_IZ_xy = PointPlotCirc(pos=[coor_pixel_file_pplt[5][i], coor_pixel_file_pplt[9][i]], file_pplt=file_pplt.obj_pplt, i=i)
                bt_IZ_xy.cor = file_pplt.obj_pplt.color
                bt_IZ_xy.height = 4
                bt_IZ_xy.width = 4

                bt_RZ_yx = PointPlot(pos=[coor_pixel_file_pplt[5][i], coor_pixel_file_pplt[10][i]], file_pplt=file_pplt.obj_pplt, i=i)
                bt_RZ_yx.cor = file_pplt.obj_pplt.color
                bt_RZ_yx.height = 4
                bt_RZ_yx.width = 4

                bt_IZ_yx = PointPlotCirc(pos=[coor_pixel_file_pplt[5][i], coor_pixel_file_pplt[11][i]], file_pplt=file_pplt.obj_pplt, i=i)
                bt_IZ_yx.cor = file_pplt.obj_pplt.color
                bt_IZ_yx.height = 4
                bt_IZ_yx.width = 4

                bt_RZ_yy = PointPlot(pos=[coor_pixel_file_pplt[5][i], coor_pixel_file_pplt[12][i]], file_pplt=file_pplt.obj_pplt, i=i)
                bt_RZ_yy.cor = file_pplt.obj_pplt.color
                bt_RZ_yy.height = 4
                bt_RZ_yy.width = 4

                bt_IZ_yy = PointPlotCirc(pos=[coor_pixel_file_pplt[5][i], coor_pixel_file_pplt[13][i]], file_pplt=file_pplt.obj_pplt, i=i)
                bt_IZ_yy.cor = file_pplt.obj_pplt.color
                bt_IZ_yy.height = 4
                bt_IZ_yy.width = 4

                bt_rho_xy.points_inte = [bt_rho_yx, bt_phi_xy, bt_phi_yx, bt_RZ_xx, bt_IZ_xx, bt_RZ_xy, bt_IZ_xy, bt_RZ_yx, bt_IZ_yx, bt_RZ_yy, bt_IZ_yy]
                bt_rho_yx.points_inte = [bt_rho_xy, bt_rho_xy, bt_phi_yx, bt_RZ_xx, bt_IZ_xx, bt_RZ_xy, bt_IZ_xy, bt_RZ_yx, bt_IZ_yx, bt_RZ_yy, bt_IZ_yy]

                bt_phi_xy.points_inte = [bt_rho_xy, bt_rho_yx, bt_phi_yx, bt_RZ_xx, bt_IZ_xx, bt_RZ_xy, bt_IZ_xy, bt_RZ_yx, bt_IZ_yx, bt_RZ_yy, bt_IZ_yy]
                bt_phi_yx.points_inte = [bt_rho_xy, bt_rho_yx, bt_phi_xy, bt_RZ_xx, bt_IZ_xx, bt_RZ_xy, bt_IZ_xy, bt_RZ_yx, bt_IZ_yx, bt_RZ_yy, bt_IZ_yy]

                bt_RZ_xx.points_inte = [bt_rho_xy, bt_rho_yx, bt_phi_xy, bt_phi_yx, bt_IZ_xx, bt_RZ_xy, bt_IZ_xy, bt_RZ_yx, bt_IZ_yx, bt_RZ_yy, bt_IZ_yy]
                bt_IZ_xx.points_inte = [bt_rho_xy, bt_rho_yx, bt_phi_xy, bt_phi_yx, bt_RZ_xx, bt_RZ_xy, bt_IZ_xy, bt_RZ_yx, bt_IZ_yx, bt_RZ_yy, bt_IZ_yy]

                bt_RZ_xy.points_inte = [bt_rho_xy, bt_rho_yx, bt_phi_xy, bt_phi_yx, bt_RZ_xx, bt_IZ_xx, bt_IZ_xy, bt_RZ_yx, bt_IZ_yx, bt_RZ_yy, bt_IZ_yy]
                bt_IZ_xy.points_inte = [bt_rho_xy, bt_rho_yx, bt_phi_xy, bt_phi_yx, bt_RZ_xx, bt_IZ_xx, bt_RZ_xy, bt_RZ_yx, bt_IZ_yx, bt_RZ_yy, bt_IZ_yy]

                bt_RZ_yx.points_inte = [bt_rho_xy, bt_rho_yx, bt_phi_xy, bt_phi_yx, bt_RZ_xx, bt_IZ_xx, bt_RZ_xy, bt_IZ_xy, bt_IZ_yx, bt_RZ_yy, bt_IZ_yy]
                bt_IZ_yx.points_inte = [bt_rho_xy, bt_rho_yx, bt_phi_xy, bt_phi_yx, bt_RZ_xx, bt_IZ_xx, bt_RZ_xy, bt_IZ_xy, bt_RZ_yx, bt_RZ_yy, bt_IZ_yy]

                bt_RZ_yy.points_inte = [bt_rho_xy, bt_rho_yx, bt_phi_xy, bt_phi_yx, bt_RZ_xx, bt_IZ_xx, bt_RZ_xy, bt_IZ_xy, bt_RZ_yx, bt_IZ_yx, bt_IZ_yy]
                bt_IZ_yy.points_inte = [bt_rho_xy, bt_rho_yx, bt_phi_xy, bt_phi_yx, bt_RZ_xx, bt_IZ_xx, bt_RZ_xy, bt_IZ_xy, bt_RZ_yx, bt_IZ_yx, bt_RZ_yy]


                if T:
                    bt_rho_xy.select()
                    bt_rho_yx.select()
                    bt_phi_xy.select()
                    bt_phi_yx.select()

                    bt_RZ_xx.select()
                    bt_IZ_xx.select()
                    bt_RZ_xy.select()
                    bt_IZ_xy.select()
                    bt_RZ_yx.select()
                    bt_IZ_yx.select()
                    bt_RZ_yy.select()
                    bt_IZ_yy.select()


                    self.ids.plot_1_point.add_widget(bt_rho_xy)
                    self.ids.plot_1_point.add_widget(bt_rho_yx)
                    self.ids.plot_1_point.add_widget(bt_phi_xy)
                    self.ids.plot_1_point.add_widget(bt_phi_yx)
                    self.ids.plot_2_point.add_widget(bt_RZ_xx)
                    self.ids.plot_2_point.add_widget(bt_IZ_xx)
                    self.ids.plot_2_point.add_widget(bt_RZ_xy)
                    self.ids.plot_2_point.add_widget(bt_IZ_xy)
                    self.ids.plot_2_point.add_widget(bt_RZ_yx)
                    self.ids.plot_2_point.add_widget(bt_IZ_yx)
                    self.ids.plot_2_point.add_widget(bt_RZ_yy)
                    self.ids.plot_2_point.add_widget(bt_IZ_yy)

                    self.list_bt_plot.append(bt_rho_xy)
                i += 1
            j += 1

            lb_view_select = Label()
            lb_view_select.size_hint_y = None
            lb_view_select.height = 30

            lb_view_select.text = file_pplt.obj_pplt.rate + '/' + file_pplt.obj_pplt.name
            lb_view_select.color = file_pplt.obj_pplt.color

            self.box_view_select.add_widget(lb_view_select)
            self.box_view_select.add_widget(LabelDivX())
        self.box_view_select.height = int(j*31)