Ver código fonte

Control the size

Jezra 11 anos atrás
pai
commit
8fdc5cf0cd
2 arquivos alterados com 2 adições e 0 exclusões
  1. 1
    0
      GtkUI.py
  2. 1
    0
      QtUI.py

+ 1
- 0
GtkUI.py Ver arquivo

@@ -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 Ver arquivo

@@ -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
 		

Carregando…
Cancelar
Salvar