Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/window.py
diff options
context:
space:
mode:
authorCristhofer Travieso <cristhofert97@gmail.com>2013-07-18 19:32:07 (GMT)
committer Cristhofer Travieso <cristhofert97@gmail.com>2013-07-18 19:32:07 (GMT)
commit5aa7c82f09a1593cdd9cd95cf77c0577585a2683 (patch)
tree0168dcdef4bea5aaf228ac5f03e6953908e942f5 /window.py
parent92304e0d7ab970a04bbaadba749d423a3114ea68 (diff)
Fixing bugs of show/hide
Signed-off-by: Cristhofer Travieso <cristhofert97@gmail.com>
Diffstat (limited to 'window.py')
-rw-r--r--window.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/window.py b/window.py
index 93e0c3f..c7a1c64 100644
--- a/window.py
+++ b/window.py
@@ -17,17 +17,8 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
from gi.repository import Gtk
-from gi.repository import Gdk
-from game import Fixed
+from game import Eventbox
-class Eventbox(Gtk.EventBox):
- def __init__(self):
- Gtk.EventBox.__init__(self)
-
- parse, color = Gdk.Color.parse('green')
- self.modify_bg(Gtk.StateType.NORMAL, color)
-
- self.add(Fixed())
if __name__ == "__main__":
window = Gtk.Window()
@@ -35,5 +26,5 @@ if __name__ == "__main__":
window.add(Eventbox())
window.maximize()
window.set_title('Truco')
- window.show_all()
+ window.show()
Gtk.main()