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
 		self.window.connect("delete_event", self.delete_event)
19
 		self.window.connect("delete_event", self.delete_event)
20
 		#give the window a name
20
 		#give the window a name
21
 		self.window.set_title("BlatherGtk")
21
 		self.window.set_title("BlatherGtk")
22
+		self.window.set_resizable(False)
22
 		
23
 		
23
 		layout = gtk.VBox()
24
 		layout = gtk.VBox()
24
 		self.window.add(layout)
25
 		self.window.add(layout)

+ 1
- 0
QtUI.py View File

21
 		self.window = QMainWindow()
21
 		self.window = QMainWindow()
22
 		#give the window a name
22
 		#give the window a name
23
 		self.window.setWindowTitle("BlatherQt")
23
 		self.window.setWindowTitle("BlatherQt")
24
+		self.window.setMaximumSize(400,200)
24
 		center = QWidget()
25
 		center = QWidget()
25
 		self.window.setCentralWidget(center)
26
 		self.window.setCentralWidget(center)
26
 		
27
 		

Loading…
Cancel
Save