Exemplo n.º 1
0
    def build(self):
        screen = Screen()
        self.theme_cls.theme_style = "Light"
        self.helper_string = Builder.load_string(code_helper)
        screen.add_widget(self.helper_string)
        self.skip_target_view = MDTapTargetView(
            widget=self.helper_string.get_screen(
                'firstwelcome').ids.welcome_skip,
            title_text="Next",
            widget_position="left_bottom",
            title_text_size="20sp",
            description_text="GO next",
            outer_radius='80dp',
            description_text_color=[1, 0, 0, 0],
            outer_circle_alpha=0.40,
            target_radius='40dp')
        self.android_target_view = MDTapTargetView(
            widget=self.helper_string.get_screen(
                'androidinfo').ids.android_info,
            title_text="Hey!!",
            widget_position="center",
            title_text_size="20sp",
            title_position="right_top",
            description_text="I am your assistant\nClick on me",
            outer_radius='180dp',
            description_text_color=[0, 0, 0, 1],
            outer_circle_alpha=0.5,
            target_radius='50dp')
        self.skip_target_view.start()
        self.android_target_view.start()

        #self.dob initialize
        self.dob_entered = True
        return screen
Exemplo n.º 2
0
    def on_enter(self):
        self.ids.lbl.opacity = 0
        self.ids.logo.opacity = 1
        self._complete = False

        ttv4 = MDTapTargetView(
            widget=self.ids.add_btn,
            outer_radius=dp(320),
            cancelable=True,
            outer_circle_color=self.app.theme_cls.primary_color[:-1],
            outer_circle_alpha=0.9,
            title_text="This is an add button",
            description_text="You can cancel it by clicking outside",
            widget_position="left_bottom",
        )
        ttv4.bind(on_close=self.complete)

        ttv3 = MDTapTargetView(
            widget=self.ids.info_btn,
            outer_radius=dp(440),
            outer_circle_color=self.app.theme_cls.primary_color[:-1],
            outer_circle_alpha=0.8,
            target_circle_color=[255 / 255, 34 / 255, 212 / 255],
            title_text="This is the info button",
            description_text="No information available yet!",
            widget_position="center",
            title_position="left_bottom",
        )
        ttv3.bind(on_close=ttv4.start)

        ttv2 = MDTapTargetView(
            widget=self.ids.search_btn,
            outer_circle_color=[155 / 255, 89 / 255, 182 / 255],
            target_circle_color=[0.2, 0.2, 0.2],
            title_text="This is the search button",
            description_text="It won't search anything for now.",
            widget_position="center",
            title_position="left_bottom",
        )
        ttv2.bind(on_close=ttv3.start)

        ttv1 = MDTapTargetView(
            widget=self.ids.menu_btn,
            outer_circle_color=self.app.theme_cls.primary_color[:-1],
            outer_circle_alpha=0.85,
            title_text="Menu Button",
            description_text="Opens up the drawer",
            widget_position="center",
            title_position="right_bottom",
        )
        ttv1.bind(on_close=ttv2.start)
        ttv1.start()
 def __init__(self, app):
     self.tap_1 = MDTapTargetView(
         widget=app.root.ids.MD_tap_target_view_screen.ids.button1,
         title_text='This is an MDTapTargetView',
         description_text='This is the description',
         widget_position='left_bottom',
         cancelable=True)
     self.tap_2 = MDTapTargetView(
         widget=app.root.ids.MD_tap_target_view_screen.ids.button2,
         title_text='This is an MDTapTargetView',
         description_text='This is the description',
         widget_position='right_top',
         cancelable=True)
Exemplo n.º 4
0
    def __init__(self, ipaddr="", **kwargs):
        super().__init__(**kwargs)
        self.dbRW = MyDb()
        self.ipaddr = ipaddr
        self.ids.ip.text, \
            self.ids.port.text = ipaddr.split(":")
        addrScnHist = self.dbRW.getAllProxyScan(ipaddr)
        from main import ProxyShowList

        for i, p in enumerate(addrScnHist):
            self.ids.md_list.add_widget(ProxyShowList(
                text=f"{agoConv(p[5])}",
                text1=f"{p[4]}",
                text2=f" {sec_to_mins(float((p[2])))}",
                text3=f" {p[1]} MB",
                text4=f" {size(p[3], system=alternative)}/s",
                _height=dp(20)
            ))
        firstTime = TrNumBool(self.dbRW.getConfig("openNo")[0], 'r', 0)
        if firstTime:
            fulladdrCopyTT = MDTapTargetView(
                widget=self.ids.adds,
                title_text="Copy IP:PORT by tapping ':'",
                description_text="That's way you can\ncopy full address \nfaster way.",  # noqa
                widget_position="left_bottom"
            )
            fulladdrCopyTT.bind(
                on_open=lambda x: self.textColorChange('o'),
                on_close=lambda x: self.textColorChange('c')
            )
            fulladdrCopyTT.start()
            self.dbRW.updateConfig("openNo", firstTime)
Exemplo n.º 5
0
 def build(self):
     screen = Builder.load_string(KV)
     self.tap_target_view = MDTapTargetView(
         widget=screen.ids.button,
         title_text="Lire",
         description_text="Patientez en écoutant la lecture de ce texte",
         widget_position="left_bottom",
     )
     return screen
Exemplo n.º 6
0
    def build(self):

        #Accessing settings database
        cur.execute("SELECT mode from settings where attribute='darkmode' ")
        GpsHelper().run()
        #App theme and UI color schemes
        darkmode_opt_list = cur.fetchall()
        darkmode_opt = darkmode_opt_list[0][0]
        self.theme_cls.primary_palette = "Cyan"
        self.theme_cls.primary_hue = "800"
        self.theme_cls.accent_palette = "Gray"
        self.theme_cls.accent_hue = "50"
        self.search_menu = SearchPopupMenu()

        self.tap_target_view = MDTapTargetView(
            widget=self.root.ids.button,
            title_text="Click here to locate you.",
            description_text="Make sure we are right over you",
            widget_position="left_bottom",
        )
        if darkmode_opt == "on":
            print("dark mode on")
            self.theme_cls.theme_style = "Dark"
            self.root.ids.darkmode_switch.active = True
        else:
            print("light mode on")
            self.theme_cls.theme_style = "Light"
            self.root.ids.darkmode_switch.active = False

        if logged_in == True:
            self.root.ids.manager.current = "Home"
            self.root.ids.ecomap.add_marker(MapMarker(lat=60, lon=30))
            myloc = MapMarker(lat=30.3433, lon=77.8839)
            self.root.ids.ecomap.add_marker(myloc)

            def repos(button):
                self.root.ids.ecomap.center_on(31.901303405681098, 76.5568)
                self.root.ids.ecomap.zoom = 18

            self.tap_target_view.bind(on_close=repos)

            def drop_marker_db(button):
                pass
                # temp_marker = MapMarker(lat=val[0], lon=val[1])
                # screen.ids.ecomap.add_marker(temp_marker)

            try:
                self.start_anim.cancel()
            except:
                pass
            self.start_anim = Clock.schedule_once(self.start_tp_anim, 3.5)

        elif logged_in == False:
            self.root.ids.parent_manager.current = "account_setup"
Exemplo n.º 7
0
 def tap_target_start(self):
     self.tap_target_view = MDTapTargetView(
         widget=self.ids['button'],
         title_text="akria",
         description_text="what can i do for you sir?",
         widget_position="center",
         title_position="left_top",
         outer_radius=150,
     )
     if self.tap_target_view.state == "open":
         self.tap_target_view.stop()
     else:
         self.tap_target_view.start()
Exemplo n.º 8
0
 def __init__(self, **kw):
     super().__init__(**kw)
     self.button = ObjectProperty(None)
     self.tap_target_view = MDTapTargetView(
         outer_circle_color=(1, 1, 1),
         widget=self.ids.button,
         title_text="    tutorials",
         draw_shadow=True,
         title_text_size=50,
         title_text_color=(255, 255, 0, 1),
         widget_position="right_top",
         description_text=
         "  most part of our\n  life is always wasted \n    due to lack of knowledge",
         description_text_color=(100, 100, 0, 1),
     )
Exemplo n.º 9
0
 def build(self):
     screen = Screen()
     self.help_str = Builder.load_string(KV)
     screen.add_widget(self.help_str)
     self.targetview = MDTapTargetView(
         widget=self.help_str.get_screen('bye').ids.t_btn,
         title_text="next",
         widget_position='left_bottom',
         title_text_size='20sp',
         description_text="go text",
         outer_radius='80dp',
         description_text_color=[1, 0, 0, 1],
         outer_circle_alpha=0.40,
         target_radius="40dp")
     return screen
Exemplo n.º 10
0
    def __init__(self, **kwargs):
        Builder.load_file('kvs/WelcomeScreen.kv')
        super(WelcomeScreen, self).__init__(**kwargs)

        # timeout variables
        self.timeout_event = None
        self.timeout_time = 30  # Seconds

        # connect tap-target-view
        self.tap_target_view = MDTapTargetView(
            widget=self.ids.info,
            title_text="Version Information",
            description_text=f"Build {App.get_running_app().build_version}\n",
            widget_position="right_bottom"
        )
Exemplo n.º 11
0
 def tap_target_start(self):
     if self.tap_target_view is None:
         self.tap_target_view = MDTapTargetView(
             widget=self.ids.commitTipsButton,
             widget_position="right_bottom",
             title_text="Tips for You",
             title_text_size="20sp",
             description_text=
             "After selecting a numeric values in\nthe above controls using the\nincrement or decrement "
             +
             "buttons,\nclick on the new number to\ncommit to the ventilator",
             description_text_color=[1, 1, .5, 1])
     if self.tap_target_view.state == "close":
         self.tap_target_view.start()
     else:
         self.tap_target_view.stop()
Exemplo n.º 12
0
    def build(self):
        screen = Screen()

        self.help_str = Builder.load_string(helper_string)

        screen.add_widget(self.help_str)
        self.taptarget = MDTapTargetView(
            widget=self.help_str.get_screen('bye').ids.textview,
            title_text='text',
            widget_position='left_bottom',
            title_text_size='20sp',
            description_text="GO next",
            outer_radius='80dp',
            description_text_color=[1, 0, 0, 0],
            outer_circle_alpha=0.40,
            target_radius='40dp')
        return screen
Exemplo n.º 13
0
    def on_start(self):
        """Creates a list of items with examples on start screen."""

        unsort = self.scan_list
        # print(unsort)
        if unsort:
            sort = sorted(unsort, key=lambda x: x['SPEED'], reverse=True)
            # print(sort)
            self.show_List()
            self.show_List(sort)
            self.root.ids.Tproxys.text = f"proxys: {len(sort)}"
            self.root.ids.Tscan.text = f"scan: {self.configs['totalScan']}"
        else:
            self.root.ids.Tscan.text = "scan: 0"
            self.root.ids.Tproxys.text = "proxys: 0"
        self.root.ids.Sprotocol.text = f"Protocol: {self.configs['protocol'].upper()}"
        self.root.ids.Smirror.text = f"Mirror: {parse.urlparse(self.configs['mirror']).netloc}".upper(
        )
        # self.root.ids.backdrop._front_layer_open=True
        Logger.info(f"Platform: {platform}")
        # if platform == 'android':
        # self.ads = KivMob(adMobIds.APP)
        # self.ads.new_banner(adMobIds.BANNER, top_pos=False)
        # self.ads.request_banner()
        # self.ads.show_banner()

        # self.root.ids.adsShow.size = (self.root.ids.backdrop_front_layer.width, 110)

        self.mirrorPic()
        self.protPic()
        self.listPic()
        self.tap_target_list_view = MDTapTargetView(
            widget=self.root.ids.Slist,
            title_text="Pic a lists",
            description_text="I will remember your list later!",
            widget_position="right_top",
            # outer_radius=dp(320),
            cancelable=True,
            outer_circle_color=self.theme_cls.primary_color[:-1],
            outer_circle_alpha=0.9,
        )
        Thread(target=self.checkUpdates).start()
Exemplo n.º 14
0
 def build(self):
     self.theme_cls.theme_style = "Dark"  # "Light"
     self.theme_cls.primary_palette = "Green"  # "Purple", "Red"
     self.theme_cls.primary_hue = "A700"  # "500"
     self.theme_cls.accent_palette = 'Lime'
     speed_dial = MDFloatingActionButtonSpeedDial()
     speed_dial.hint_animation= True
     speed_dial.right_pad = True
     speed_dial.data = self.data
     speed_dial.root_button_anim = True
     screen= Builder.load_string(kv)
     screen.add_widget(speed_dial)
     self.tap_target_view = MDTapTargetView(
         widget=screen.ids.button,
         title_text="Add Trip",
         description_text="Let people know where are you heading",
         widget_position="left_bottom",
     )
     
     return screen
Exemplo n.º 15
0
 def song_details(self, i):
     self.s_manager = self.root.ids.screen_manager
     self.change_screen('SongDetailsScreen')
     self.details_screen = self.root.ids.SongDetailsScreen
     self.details_screen.clear_widgets()
     self.song_name = self.search_data[i]['title'].replace(
         """, "'").replace("&", "&").replace("'", "'")
     self.song_id = self.search_data[i]['id']
     try:
         self.artist_name = self.search_data[i]['more_info'][
             'primary_artists'].replace(""", "'").replace(
                 "&", "&").replace("'", "'")
         self.album = self.search_data[i]['album'].replace(
             """, "'").replace("&", "&").replace("'", "'")
     except:
         self.artist_name = self.search_data[i]['subtitle']
     self.image_url = self.search_data[i]['image'].replace(
         '50x50', '500x500').replace('150x150', '500x500')
     self.image_path = os.path.join(self.data_path, self.song_id + '.jpg')
     self.fetch_thread = threading.Thread(target=self.fetch_details)
     self.fetch_thread.start()
     self.details_screen.add_widget(
         MDIconButton(icon='chevron-left',
                      pos_hint={
                          "center_x": 0.05,
                          "center_y": 0.95
                      },
                      on_press=lambda x: self.back_screen()))
     song_image = AsyncImage(source=self.image_url,
                             pos_hint={
                                 "center_x": 0.5,
                                 "center_y": 0.5
                             },
                             allow_stretch=True)
     card = MDCard(orientation='vertical',
                   pos_hint={
                       "center_x": 0.5,
                       "center_y": 0.65
                   },
                   size_hint=(None, None),
                   size=(self.win_size * 0.9, self.win_size * 0.9))
     card.add_widget(song_image)
     self.details_screen.add_widget(card)
     self.details_screen.add_widget(
         MDLabel(text=self.song_name,
                 halign='center',
                 theme_text_color='Custom',
                 text_color=self.theme_cls.primary_color,
                 font_style='H4',
                 bold=True,
                 pos_hint={"top": 0.84}))
     self.details_screen.add_widget(
         MDLabel(text=self.artist_name,
                 halign='center',
                 theme_text_color='Secondary',
                 font_style='H6',
                 pos_hint={"top": 0.8}))
     self.spinner = MDSpinner(size_hint=(None, None),
                              size=("50", "50"),
                              pos_hint={
                                  'center_x': 0.5,
                                  "center_y": 0.15
                              },
                              active=True)
     #self.details_screen.add_widget(MDLabel(text=self.album, halign='center', theme_text_color='Hint', font_style='H6', pos_hint={"top":0.9}))
     self.heart_icon = MDIconButton(icon='heart-outline',
                                    user_font_size="30sp",
                                    theme_text_color='Secondary',
                                    pos_hint={
                                        "center_x": 0.1,
                                        "center_y": 0.15
                                    },
                                    on_press=lambda x: self.add_fav())
     self.details_screen.add_widget(self.heart_icon)
     self.play_progress = MDProgressBar(pos_hint={
         'center_x': 0.5,
         'center_y': 0.25
     },
                                        size_hint_x=0.9,
                                        value=0,
                                        color=self.theme_cls.primary_color)
     self.details_screen.add_widget(self.play_progress)
     self.tap_target_view = MDTapTargetView(
         widget=self.heart_icon,
         title_text="Add to Favorites",
         description_text="Feature currently under development",
         widget_position="left_bottom",
     )
     self.details_screen.add_widget(
         MDIconButton(icon="chevron-double-left",
                      pos_hint={
                          "center_x": .3,
                          "center_y": .15
                      },
                      user_font_size="50sp",
                      on_release=lambda x: self.rewind()))
     self.details_screen.add_widget(
         MDIconButton(icon="chevron-double-right",
                      pos_hint={
                          "center_x": .7,
                          "center_y": .15
                      },
                      user_font_size="50sp",
                      on_release=lambda x: self.forward()))
     self.play_btn = MDFloatingActionButton(
         icon='play',
         pos_hint={
             'center_x': 0.5,
             "center_y": 0.15
         },
         user_font_size="50sp",
         md_bg_color=(1, 1, 1, 1),
         elevation_normal=10,
         on_press=lambda x: self.play_song_online())
     self.details_screen.add_widget(self.play_btn)
     self.details_screen.add_widget(
         MDIconButton(icon='arrow-collapse-down',
                      user_font_size="30sp",
                      theme_text_color='Secondary',
                      pos_hint={
                          'center_x': 0.9,
                          "center_y": 0.15
                      },
                      on_press=lambda x: self.download_bar()))
     try:
         self.dia.dismiss()
     except:
         pass
Exemplo n.º 16
0
    def on_pre_enter(self, *args):
        try:
            self.app.add_bottom_canvas()
        except:
            print("on sign up")
        self.app.root.ids['workoutscreen'].tap_target_view = MDTapTargetView(
            widget=self.ids.add_split,
            title_text="Add Splits",
            description_text="press this button to add split days",
            widget_position="right_top",
            target_circle_color=(1, 0, 0))
        if self.app.debug:
            print("entering workout screen")
            print("create mode:", self.create_mode)
            print("edit mode:", self.edit_mode)
            print("temp_workout", self.temp_workout)
            print("workout", self.workout)
            print("workout name", self.workout_name)

        if self.app.root.ids['workoutscreen'].create_mode:
            if self.app.debug:
                print("entering workout screen")
                if self.create_mode:
                    print("In create mode:")
            self.switch_mode("edit")
            self.temp_workout = [[]]
            self.reset_tabs()
            self.reload_page()
            self.app.change_title("Building: " + self.workout_name)
            self.app.root.ids['toolbar'].right_action_items = [[
                'help', lambda x: self.app.show_workout_help()
            ]]

        else:
            self.switch_mode("view")
            screen_manager = self.app.root.ids['screen_manager1']

            if screen_manager.current == "workoutscreen":
                self.app.root.ids['toolbar'].right_action_items = [[
                    'dots-vertical', lambda x: self.app.open_workout_menu()
                ]]
            workout_key_to_view = self.app.workout_key_to_view
            workout_to_view = list(
                self.app.workoutsParsed[workout_key_to_view][0].values())
            workout_name = list(
                self.app.workoutsParsed[workout_key_to_view][0].keys())[0]

            self.workout_name = workout_name
            self.workout_key = workout_key_to_view
            self.workout = workout_to_view[0]
            self.app.change_title(self.workout_name)

            self.temp_workout = copy.deepcopy(self.workout)
            self.reset_tabs()

            if self.app.debug:
                print("In VIEW mode:")
                print("workout to load", workout_to_view)
                print("workout_key", self.workout_key)
                print("temp_workout", self.temp_workout)
                print("workout", self.workout)
                print("workout name", self.workout_name)
                print("TRYING TO RELOAD")

            self.set_split_tabs()
            self.reload_page()
            self.app.root.ids[
                'workoutscreen'].workout_key = self.app.workout_key_to_view
            self.app.root.ids['workoutscreen'].ids["split_tabs"].switch_tab(
                "Split 1")
    def select_path(self, path):
        '''It will be called when you click on the file name
        or the catalog selection button.
        :type path: str;
        :param path: path to the selected directory or file;
        '''
        self.exit_manager()

        global finalpath
        punc = '''/~$%^'''
        # remove '/' from the path
        for ele in path:
            if ele in punc:
                path1 = path.replace(ele, "")
        # path1 -> '/' symbol removed filepath  /Users\Kripa\Desktop\exconvo.txt to Users\Kripa\Desktop\exconvo.txt

        tmplist = path1.split(os.sep)
        # splits the path and is put in the list tmplist
        # Users\Kripa\Desktop\exconvo.txt to ['Users','Kripa','Desktop','exconvo.txt']

        finalpath = ""
        for wrd in tmplist:
            finalpath = finalpath + r"\\" + wrd
        finalpath = "C:" + finalpath
        # print(finalpath)   #C:\\Users\Kripa\Desktop\exconvo.txt
        with open(finalpath, 'r') as in_file:
            stripped = (line.strip() for line in in_file)
            lines = (line.split(",") for line in stripped if line)

            with open('C:\\Users\\Kripa\\Desktop\\convo.csv', 'w',
                      newline='') as out_file:
                writer = csv.writer(out_file)
                writer.writerow(('name', 'msg'))
                writer.writerows(lines)

        ct = 0
        row_ct1 = 0
        row_ct2 = 0
        strname = ""

        # Get no.of messages for both users
        with open("C:\\Users\\Kripa\Desktop\\convo.csv", 'r') as csv_file:
            csv_reader = csv.reader(csv_file, delimiter=',')

            for row in csv_reader:
                # lets tokenise
                if ct == 0 and row[0] != "name":
                    strname = row[0]
                    ct = ct + 1
                if row[0] == strname:
                    row_ct1 = row_ct1 + 1

                else:
                    row_ct2 = row_ct2 + 1

        screen = Builder.load_string(conv_anal)

        self.tap_target_view = MDTapTargetView(
            widget=screen.ids.button,
            title_text="USER 1      USER 2",
            description_text="   " + str(row_ct1) + "                  " +
            str(row_ct2) + " \nMESSAGES    MESSAGES",
            widget_position="center",
            title_position="right_top",
            title_text_size="20sp",
            outer_radius=250,
        )

        sm.add_widget(screen)

        # GROOMING
        if int(self.age.text) < 18:
            with open("C:\\Users\\Kripa\Desktop\\convo.csv") as csv_file:
                csv_reader = csv.reader(csv_file, delimiter=',')
                pred_name = ""
                p_ct = 0
                for row in csv_reader:
                    if p_ct == 0 and row[0] != "name" and row[
                            0] != self.username.text:
                        pred_name = row[0]
                        p_ct = p_ct + 1
                    row[1] = row[1].lower()  # convert to lowercase

                    lemr = ""
                    for word in row[1].split():  # Lemmatisation
                        lem = (lemmatizer.lemmatize(word, pos="v"))
                        lem = (lemmatizer.lemmatize(lem))
                        lemr = lemr + lem + " "

                    no_punct = ""
                    for char in lemr:  # Remove punctuation
                        if char not in punctuations:
                            no_punct = no_punct + char

                    data = word_tokenize(no_punct)
                    stopWords = set(stopwords.words('english'))
                    wordsFiltered = []

                    for w in data:  # Remove stopwords
                        if w not in stopWords:
                            wordsFiltered.append(w)
                    fp = "C:\\Users\\Kripa\\Desktop\\exconvo2.csv"
                    with open(fp, 'a+', newline='') as out_file:
                        writer = csv.writer(out_file, delimiter=' ')
                        writer.writerow(wordsFiltered[:20])

            # liwc
            def tokenize(text):
                for match in re.finditer(r'\w+', text, re.UNICODE):
                    yield match.group(0)

            parse, category_names = liwc.load_token_parser(
                "C:\\Users\\Kripa\\Desktop\\bigdic.dic")
            cntt = array('i', [0, 0, 0, 0, 0, 0])  # Stages
            predator = "C:\\Users\\Kripa\\Desktop\\exconvo2.csv"
            with open(predator) as csv_file:
                csv_reader = csv.reader(csv_file, delimiter=',')
                ct = 0
                i = 1
                j = 0
                for row in csv_reader:

                    p = row.copy()
                    p1 = listtostring(p).lower()
                    p_token = tokenize(p1)
                    from collections import Counter
                    op1 = Counter(category for token in p_token
                                  for category in parse(token))
                    op = dict(op1)
                    l = list(op.keys())
                    l.sort(reverse=True)
                    if l:
                        j = l[0]
                    if j == "S1":
                        cntt[0] = cntt[0] + 1
                    if j == "S2":
                        cntt[1] = cntt[1] + 1
                    if j == "S3":
                        cntt[2] = cntt[2] + 1
                    if j == "S4":
                        cntt[3] = cntt[3] + 1
                    if j == "S5":
                        cntt[4] = cntt[4] + 1
                    if j == "S6":
                        cntt[5] = cntt[5] + 1
            '''
            cntt[0]=807
            cntt[1]=396
            cntt[2] =87
            cntt[3] =79
            cntt[4] =38
            cntt[5] =226
            '''
            clf = joblib.load('svm.pkl')
            op = clf.predict([cntt])
            if op == [1]:
                mail.main_func(self.username.text, self.mycontact.text,
                               pred_name, "", "", "message1")
                self.dialog = MDDialog(
                    text=
                    "Grooming characteristics detected. Immediate responders have been informed.",
                    size_hint=(0.8, 1),
                    buttons=[
                        MDFlatButton(text='Close',
                                     on_release=self.close_dialog),
                    ])

                self.dialog.open()

        toast(finalpath)
        # return sm
        os.remove("C:\\Users\\Kripa\\Desktop\\exconvo2.csv")
    def build(self):
        self.theme_cls.primary_palette = "Blue"  # "BlueGray"
        self.theme_cls.primary_hue = "500"  # "700"
        self.theme_cls.theme_style = "Light"

        screen = Builder.load_string(login_helper)
        self.lusername = Builder.load_string(helpers.lusername_input)
        self.lpassword = Builder.load_string(helpers.lpassword_input)
        button = MDRectangleFlatButton(text='Submit',
                                       pos_hint={
                                           'center_x': 0.5,
                                           'center_y': 0.3
                                       },
                                       on_release=self.log_show_data)
        screen.add_widget(self.lusername)
        screen.add_widget(self.lpassword)
        screen.add_widget(button)
        sm.add_widget(screen)

        screen = Builder.load_string(signup_helper)
        self.username = Builder.load_string(helpers.username_input)
        self.mycontact = Builder.load_string(helpers.mycontact_input)
        self.email = Builder.load_string(helpers.email_input)
        self.password = Builder.load_string(helpers.password_input)
        self.age = Builder.load_string(helpers.age_input)
        button = MDRectangleFlatButton(text='Submit',
                                       pos_hint={
                                           'center_x': 0.5,
                                           'center_y': 0.2
                                       },
                                       on_release=self.sign_show_data)

        screen.add_widget(self.username)
        screen.add_widget(self.mycontact)
        screen.add_widget(self.email)
        screen.add_widget(self.password)
        screen.add_widget(self.age)
        screen.add_widget(button)
        sm.add_widget(screen)

        screen = Builder.load_string(navigation_helper)
        sm.add_widget(screen)

        screen = Builder.load_string(screen_helper)
        self.abusername = Builder.load_string(helpers.abusername_input)
        self.contact = Builder.load_string(helpers.contact_input)
        self.reason = Builder.load_string(helpers.reason_input)
        button = MDRectangleFlatButton(text='Submit',
                                       pos_hint={
                                           'center_x': 0.5,
                                           'center_y': 0.3
                                       },
                                       on_release=self.show_data)
        screen.add_widget(self.abusername)
        screen.add_widget(self.contact)
        screen.add_widget(self.reason)
        screen.add_widget(button)
        sm.add_widget(screen)
        screen = Builder.load_string(newsscraping)
        self.tap_target_view = MDTapTargetView(
            widget=screen.ids.button1,
            title_text="Teens having \nat least 1 social \nmedia profile",
            description_text="   75%                  ",
            widget_position="center",
            title_position="right_top",
            title_text_size="20sp",
            outer_radius=250,
        )

        sm.add_widget(screen)
        screen = Builder.load_string(conv_upload)
        sm.add_widget(screen)

        screen = Builder.load_string(screen_helper4)
        sm.add_widget(screen)
        screen = Builder.load_string(screen_helper5)
        sm.add_widget(screen)
        screen = Builder.load_string(screen_helper6)
        sm.add_widget(screen)

        return sm