Browse Source

Control the size

Jezra 11 years ago
parent
commit
8fdc5cf0cd
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      GtkUI.py
  2. 1
    0
      QtUI.py

+ 1
- 0
GtkUI.py View File

@@ -19,6 +19,7 @@ class UI(gobject.GObject):
19 19
 		self.window.connect("delete_event", self.delete_event)
20 20
 		#give the window a name
21 21
 		self.window.set_title("BlatherGtk")
22
+		self.window.set_resizable(False)
22 23
 		
23 24
 		layout = gtk.VBox()
24 25
 		self.window.add(layout)

+ 1
- 0
QtUI.py View File

@@ -21,6 +21,7 @@ class UI(gobject.GObject):
21 21
 		self.window = QMainWindow()
22 22
 		#give the window a name
23 23
 		self.window.setWindowTitle("BlatherQt")
24
+		self.window.setMaximumSize(400,200)
24 25
 		center = QWidget()
25 26
 		self.window.setCentralWidget(center)
26 27
 		

Loading…
Cancel
Save