From 49e0dd71e7ea3732ae808c8b2b5aadeb9438fbf8 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Tue, 25 Sep 2018 21:18:35 +0900 Subject: [PATCH] attribute assignment is no good --- base/home/local/python-demos/file_browser.py | 2 -- base/home/local/python-demos/menu_bar.py | 1 - 2 files changed, 3 deletions(-) diff --git a/base/home/local/python-demos/file_browser.py b/base/home/local/python-demos/file_browser.py index 29688e5d..832fe892 100755 --- a/base/home/local/python-demos/file_browser.py +++ b/base/home/local/python-demos/file_browser.py @@ -83,8 +83,6 @@ class FileBrowserWindow(yutani.Window): def __init__(self, decorator, path): super(FileBrowserWindow, self).__init__(self.base_width + decorator.width(), self.base_height + decorator.height(), title=app_name, icon="folder", doublebuffer=True) self.move(100,100) - self.x = 100 - self.y = 100 self.decorator = decorator def exit_app(action): diff --git a/base/home/local/python-demos/menu_bar.py b/base/home/local/python-demos/menu_bar.py index 9bccac67..40eb2bb7 100644 --- a/base/home/local/python-demos/menu_bar.py +++ b/base/home/local/python-demos/menu_bar.py @@ -273,7 +273,6 @@ class MenuWindow(yutani.Window): self.move(*origin) self.focused_widget = None self.child = None - self.x, self.y = origin self.closed = False self.root = root self.root.menus[self.wid] = self