Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
# temporary
Kivy app development!

Current Status:
Login page
Register Page
Homepage
69 changes: 35 additions & 34 deletions latest without bookmark/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

AllLands=list(c.execute("Select * from land"))


class CustomDropDown(Screen,BoxLayout):
pass

class MouseWidget(BoxLayout):
image=ObjectProperty()
label=ObjectProperty()
Expand All @@ -30,25 +34,10 @@ class MouseWidget(BoxLayout):
class ConnectingSigninRegister(ScreenManager):
pass

class CustomDropDown(Screen,BoxLayout):
pass

class MyPopupProgressBar(Screen,BoxLayout):
progress_bar = ObjectProperty()

def __init__(self, **kwa):
super( MyPopupProgressBar, self).__init__(**kwa)

self.progress_bar = ProgressBar()
self.popup = Popup(title='Loading: {}%'.format(int(self.progress_bar.value)),
content=self.progress_bar)
self.popup.bind(on_open=self.puopen)
Clock.schedule_once(self.pop)

def jinchurki(self, dt):
self.popup.title='Loading: {}%'.format(int(self.progress_bar.value))


def pop(self, instance):
self.progress_bar.value = 1
self.popup.open()
Expand All @@ -64,6 +53,18 @@ def puopen(self, instance):
Clock.schedule_interval(self.next,1/100)
Clock.schedule_interval(self.jinchurki,1/100)

def __init__(self, **kwa):
super( MyPopupProgressBar, self).__init__(**kwa)

self.progress_bar = ProgressBar()
self.popup = Popup(title='Loading: {}%'.format(int(self.progress_bar.value)),
content=self.progress_bar)
self.popup.bind(on_open=self.puopen)
Clock.schedule_once(self.pop)

def jinchurki(self, dt):
self.popup.title='Loading: {}%'.format(int(self.progress_bar.value))

class HomePage(BoxLayout,Screen):
cur=-1;
def showland(self):
Expand Down Expand Up @@ -257,7 +258,26 @@ def closebutton(self):
conn.commit()
App.get_running_app().stop()

class AddWindow(BoxLayout,Screen):
def __init__(self, **kwargs):
super().__init__(**kwargs)

def addland(self):
name=self.ids.add_land_name.text
price=self.ids.add_land_price.text
address=self.ids.add_land_address.text
area=self.ids.add_land_area.text
info=self.ids.infoAdd
if(name=="" or price=="" or address=="" or area==""):
info.text='[color=#FF0000]Please fill all the details![/color]'
else:
info.text='[color=#FF0000]Land Added Succesfully[/color]'
templist=(name,price,area,address)
c.execute("insert into land values(?,?,?,?)",templist)

def closebutton(self):
conn.commit()
App.get_running_app().stop()

class SigninWindow(BoxLayout,Screen):
def __init__(self, **kwargs):
Expand Down Expand Up @@ -314,26 +334,7 @@ def closebutton(self):
conn.commit()
App.get_running_app().stop()

class AddWindow(BoxLayout,Screen):
def __init__(self, **kwargs):
super().__init__(**kwargs)

def addland(self):
name=self.ids.add_land_name.text
price=self.ids.add_land_price.text
address=self.ids.add_land_address.text
area=self.ids.add_land_area.text
info=self.ids.infoAdd
if(name=="" or price=="" or address=="" or area==""):
info.text='[color=#FF0000]Please fill all the details![/color]'
else:
info.text='[color=#FF0000]Land Added Succesfully[/color]'
templist=(name,price,area,address)
c.execute("insert into land values(?,?,?,?)",templist)

def closebutton(self):
conn.commit()
App.get_running_app().stop()


kv=Builder.load_file("my1.kv")
Expand Down
1 change: 0 additions & 1 deletion latest without bookmark/maptest.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
Label:
text: "Latitude: {}".format(mapview.lat)
""")
#print(mapview.lon)
class main(App,BoxLayout):
def build(self):
self.jinchuriki()
Expand Down