Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TurtleArtActivity.py3
-rw-r--r--tawindow.py5
2 files changed, 4 insertions, 4 deletions
diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py
index b1f1001..3b4ee42 100644
--- a/TurtleArtActivity.py
+++ b/TurtleArtActivity.py
@@ -90,7 +90,6 @@ class TurtleArtActivity(activity.Activity):
self.sw = gtk.ScrolledWindow()
self.set_canvas(self.sw)
- # self.sw.set_policy(gtk.POLICY_ALWAYS, gtk.POLICY_ALWAYS)
self.sw.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
self.sw.show()
canvas = gtk.DrawingArea()
@@ -153,7 +152,7 @@ class TurtleArtActivity(activity.Activity):
FILE.close()
self.tw = tawindow.twNew(canvas,activity.get_bundle_path(), \
- lang,self)
+ lang,self)
self.tw.activity = self
self.tw.window.grab_focus()
self.tw.save_folder=os.path.join( \
diff --git a/tawindow.py b/tawindow.py
index e68921c..325eeb2 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
-#Copyright (c) 2007-9, Playful Invention Company.
+#Copyright (c) 2007, Playful Invention Company
+#Copyright (c) 2008-9, Walter Bender
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
@@ -55,9 +56,9 @@ def twNew(win, path, lang, parent=None):
win.set_flags(gtk.CAN_FOCUS)
tw.width = gtk.gdk.screen_width()
tw.height = gtk.gdk.screen_height()
- win.set_size_request(tw.width, tw.height)
# starting from command line
if parent is None:
+ win.set_size_request(tw.width, tw.height)
win.show_all()
# starting from Sugar
else: