From 8fdc5cf0cdf84f25b84f9c0db003c1bc0f0d096e Mon Sep 17 00:00:00 2001 From: Jezra Date: Fri, 3 May 2013 10:22:25 -0700 Subject: Control the size --- GtkUI.py | 1 + QtUI.py | 1 + 2 files changed, 2 insertions(+) diff --git a/GtkUI.py b/GtkUI.py index d371aac..9d68fcc 100644 --- a/GtkUI.py +++ b/GtkUI.py @@ -19,6 +19,7 @@ class UI(gobject.GObject): self.window.connect("delete_event", self.delete_event) #give the window a name self.window.set_title("BlatherGtk") + self.window.set_resizable(False) layout = gtk.VBox() self.window.add(layout) diff --git a/QtUI.py b/QtUI.py index bfe2358..37910a5 100644 --- a/QtUI.py +++ b/QtUI.py @@ -21,6 +21,7 @@ class UI(gobject.GObject): self.window = QMainWindow() #give the window a name self.window.setWindowTitle("BlatherQt") + self.window.setMaximumSize(400,200) center = QWidget() self.window.setCentralWidget(center) -- cgit 1.4.1