Jam/status_bar.py

16 lines
404 B
Python
Raw Normal View History

from kivy.uix.label import Label
from kivy.graphics import Color,Rectangle
from kivy.utils import escape_markup
class Status_bar(Label):
def __init__(self,app,**kwargs):
# app is used to share information between widgets
self.app=app
# init Label
super(Status_bar,self).__init__(**kwargs)
def set_position(self,string):
self.text=escape_markup(string)