diff options
author | mbvierci <mbvierci88@gmail.com> | 2013-01-18 19:05:27 (GMT) |
---|---|---|
committer | mbvierci <mbvierci88@gmail.com> | 2013-01-18 19:05:27 (GMT) |
commit | 28eb29dbaa5420d174c281b313e14c545d26ceb7 (patch) | |
tree | 79e60a765ae1432c90bdc9260a6fb47cb16853a8 | |
parent | 508cefe315f6da1a088e9ad557be994488f9d025 (diff) |
Modificaciones en la ventana principal
-rw-r--r-- | window.py | 24 |
1 files changed, 11 insertions, 13 deletions
@@ -13,14 +13,18 @@ class MyApp(): def __init__(self): window = gtk.Window() principalVbox = gtk.VBox() - - + window.connect('destroy', self.destroy) + window.set_title('Audio Pattern') + window.set_position(gtk.WIN_POS_CENTER) + window.set_default_size(800, 600) cabeceraHbox = gtk.HBox() jugarButton = gtk.Button() jugarButton.set_label('JUGAR') + #jugarButton.set_size_request(5, 10) cancelarButton = gtk.Button() cancelarButton.set_label('CANCELAR') + #cancelarButton.set_size_request(5, 10) cuerpoHbox = gtk.HBox() seleccionadosTable = gtk.Table(4, 1, True) @@ -39,10 +43,7 @@ class MyApp(): opcionSiete = gtk.Button() opcionOcho = gtk.Button() opcionNueve = gtk.Button() - - - - + window.add(principalVbox) principalVbox.add(cabeceraHbox) principalVbox.add(cuerpoHbox) @@ -57,8 +58,7 @@ class MyApp(): seleccionadosTable.attach(seleccionadoDosButton, 0, 1, 1, 2) seleccionadosTable.attach(seleccionadoTresButton, 0, 1, 2, 3) #seleccionadosTable.attach(selecionadoUnoButton, 0, 1, 0, 1) - - + opcionesTable.attach( opcionUno, 0, 1, 0, 1) opcionesTable.attach( opcionDos, 1, 2, 0, 1) opcionesTable.attach( opcionTres, 2, 3, 0, 1) @@ -68,13 +68,11 @@ class MyApp(): opcionesTable.attach( opcionSiete, 0, 1, 2, 3) opcionesTable.attach( opcionOcho, 1, 2, 2, 3) opcionesTable.attach( opcionNueve, 2, 3, 2, 3) - - + window.show_all() - - - + def destroy(self, window, data=None): + gtk.main_quit() if __name__ == "__main__": |