2021-09-29 19:52:31 +00:00
|
|
|
from kivy.uix.label import Label
|
|
|
|
from kivy.graphics import Color,Rectangle
|
2021-09-30 05:46:12 +00:00
|
|
|
from kivy.utils import escape_markup
|
2021-09-29 19:52:31 +00:00
|
|
|
|
|
|
|
class Status_bar(Label):
|
|
|
|
|
2021-09-30 05:46:12 +00:00
|
|
|
def __init__(self,app,**kwargs):
|
|
|
|
# app is used to share information between widgets
|
|
|
|
self.app=app
|
|
|
|
|
2021-09-29 19:52:31 +00:00
|
|
|
# init Label
|
|
|
|
super(Status_bar,self).__init__(**kwargs)
|
2021-09-30 05:46:12 +00:00
|
|
|
|
|
|
|
def set_position(self,string):
|
|
|
|
self.text=escape_markup(string)
|