From 1adcf7f3f43fa39dd2f94782e2edf316798d748d Mon Sep 17 00:00:00 2001 From: surbhi Date: Thu, 19 Jul 2018 17:17:37 +0530 Subject: [PATCH] Changes made for Exit application button feature with trash enhancement --- src/bitmessagekivy/main.kv | 6 ++---- src/bitmessagekivy/mpybit.py | 12 +++++++++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/bitmessagekivy/main.kv b/src/bitmessagekivy/main.kv index 5d43de64..1bc918ae 100644 --- a/src/bitmessagekivy/main.kv +++ b/src/bitmessagekivy/main.kv @@ -106,9 +106,7 @@ BoxLayout: : name: 'trash' - Label: - text:"I am in card" - color: 0,0,0,1 + : name: 'dialog' Label: @@ -117,7 +115,7 @@ BoxLayout: : name: 'test' Label: - text:"a rapid data env" + text:"I am in test" color: 0,0,0,1 : diff --git a/src/bitmessagekivy/mpybit.py b/src/bitmessagekivy/mpybit.py index baf71100..9ba9793d 100644 --- a/src/bitmessagekivy/mpybit.py +++ b/src/bitmessagekivy/mpybit.py @@ -14,7 +14,6 @@ from kivy.uix.label import Label from kivy.uix.textinput import TextInput from kivy.clock import Clock from kivy.uix.boxlayout import BoxLayout -from kivy.core.window import Window from os import environ import shutdown @@ -31,7 +30,6 @@ class NavigateApp(App): print ("**************************EXITING FROM APPLICATION*****************************") App.get_running_app().stop() shutdown.doCleanShutdown() - Window.close() class Navigator(NavigationDrawer): image_source = StringProperty('images/me.jpg') @@ -61,7 +59,15 @@ class Sent(Screen): self.add_widget(my_box1) class Trash(Screen): - pass + def __init__ (self,**kwargs): + super (Trash, self).__init__(**kwargs) + val_y = .1 + val_z = 0 + my_box1 = BoxLayout(orientation='vertical') + for i in range(1, 5): + my_box1.add_widget(Label(text="I am in trash", size_hint = (.3,.1), pos_hint = {'x': val_z,'top': val_y},color = (0,0,0,1), background_color = (0,0,0,0))) + val_y+=.1 + self.add_widget(my_box1) class Dialog(Screen):