Rename global variable FS to FULLSCREEN in order to make it self-descriptive

Make EvasCanvas.__init__() honor the fullscreen parameter instead of using the global variable directly




git-svn-id: http://www.neo1973-germany.de/svn@95 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
Abraxa 2008-08-28 21:10:06 +00:00
parent 6be4f6a3a5
commit 4cd74d1fea

View file

@ -7,7 +7,7 @@ __license__ = "GPL3"
WIDTH = 480 WIDTH = 480
HEIGHT = 640 HEIGHT = 640
FS = True FULLSCREEN = True
TITLE = "epydial" TITLE = "epydial"
WM_INFO = ("epydial", "epydial") WM_INFO = ("epydial", "epydial")
@ -153,7 +153,7 @@ class dialer_main(edje_group):
class TestView(object): class TestView(object):
def __init__(self): def __init__(self):
edje.frametime_set(1.0 / 20) edje.frametime_set(1.0 / 20)
self.evas_canvas = EvasCanvas(fullscreen=FS, engine="x11-16", size="480x640") self.evas_canvas = EvasCanvas(fullscreen=FULLSCREEN, engine="x11-16", size="480x640")
self.groups = {} self.groups = {}
self.groups["pyneo/dialer/main"] = dialer_main(self) self.groups["pyneo/dialer/main"] = dialer_main(self)
@ -178,7 +178,7 @@ class EvasCanvas(object):
self.evas_obj.title = TITLE self.evas_obj.title = TITLE
self.evas_obj.name_class = WM_INFO self.evas_obj.name_class = WM_INFO
self.evas_obj.fullscreen = FS self.evas_obj.fullscreen = fullscreen
# self.evas_obj.size = size # self.evas_obj.size = size
self.evas_obj.show() self.evas_obj.show()