Esempio n. 1
0
from main_imports import ScreenManager
from libs.applibs import utils

utils.load_kv("root.kv")


class Root(ScreenManager):
    pass
Esempio n. 2
0
from kivymd.uix.boxlayout import MDBoxLayout
from kivymd.uix.expansionpanel import MDExpansionPanel, MDExpansionPanelThreeLine, MDExpansionPanelOneLine
from kivy.lang import Builder
from kivymd.uix.label import MDLabel
from kivymd.uix.list import OneLineListItem
from kivymd.toast import toast
from main_imports import ImageLeftWidget, MDScreen, TwoLineAvatarListItem
from libs.applibs import utils

utils.load_kv("home.kv")

hurriyet = False
cnn = False


class Content(MDBoxLayout):
    '''Custom content.'''


class Home_Screen(MDScreen):
    def callback(self, instance, value):
        toast(value)
        if value == "Hurriyet":
            hurriyet = True

    def search_account(self):
        """
        this method use when search button pressed search_field
        contain data in string that you want to search on hamster server
        """
Esempio n. 3
0
from main_imports import (MDDialog, MDFlatButton, MDGridBottomSheet, MDScreen,
                          OneLineTextDialog)

from libs.applibs import utils

utils.load_kv("profile.kv")


class Profile_Screen(MDScreen):
    def change_profile_data(self, widget):
        """Change text data using Dialog box.
        [widget] change this widget text"""
        dialogObj = None
        Dialog = OneLineTextDialog()

        def cancel_btn(btn):
            # use function when CANCEL btn click
            dialogObj.dismiss(force=True)

        def ok_btn(btn):
            # use function when OK btn click
            widget.text = Dialog.ids.dialog_text.text
            cancel_btn(btn)

        if not dialogObj:
            dialogObj = MDDialog(
                auto_dismiss=True,
                title=widget.secondary_text,
                type="custom",
                content_cls=Dialog,
                buttons=[
Esempio n. 4
0
from main_imports import BoxLayout
from libs.applibs import utils
utils.load_kv("ui_class.kv")


class OneLineTextDialog(BoxLayout):
    def input_text(self):
        return self.ids.dialog_text.text
Esempio n. 5
0
from main_imports import MDCard, MDLabel, MDScreen, MDSeparator
from libs.applibs import utils
utils.load_kv("chat_room.kv")


class Chat_Room_Screen(MDScreen):
    def chat_textbox(self):
        """
            MDCard size change when MSGbox use multilines.
            MDCard y axis size incress when MSGbox y axis size incress
        """
        fixed_Y_size = self.ids.root_chatroom.size[1] / 3
        msg_textbox = self.ids.msg_textbox.size

        if msg_textbox[1] <= fixed_Y_size:

            self.ids.send_card.size[1] = msg_textbox[1]
            print(msg_textbox)
        else:
            self.ids.send_card.size[1] = fixed_Y_size

    def send_msg(self, msg_data):
        """
            When send button use to send msg this function call
            and clear MSGbox 
        """

        text_msg = MDLabel(text=msg_data, halign="left")

        sizeX = self.ids.msg_textbox.size[0]
Esempio n. 6
0
from main_imports import MDScreen
from libs.applibs import utils

utils.load_kv("forgot.kv")


class Forgot_Screen(MDScreen):
    pass
Esempio n. 7
0
from main_imports import MDScreen
from libs.applibs import utils

utils.load_kv("verification.kv")


class Verification_Screen(MDScreen):
    pass
Esempio n. 8
0
from main_imports import MDScreen
from libs.applibs import utils

utils.load_kv("signup.kv")


class Signup_Screen(MDScreen):
    pass