pastebin.ch - Untitled

Subject
Untitled
Author
Unnamed
Description
No description given
Posted on
Mon, 23 Aug 2010 20:49:08 +0200
Content
# -*- coding: utf-8 -*- 

import gtk
from Game import game

g = game()
startbutton = gtk.Button("Spiel
starten") #startbutton highscorebutton = gtk.Button("Highscores
anzeigen") #highscorebutton class GUI(gtk.Window): def __init__(self): #Main
GUI-Methode super(GUI, self).__init__() self.set_title("Zahlenraten v0.2 by Jon Ryan") #Titel
& Stuff self.set_size_request(600,
400) self.set_position(gtk.WIN_POS_CENTER) startbutton.set_size_request(180,25) #startbutton-settings startbutton.connect("clicked",
self.startButtonPressed) highscorebutton.set_size_request(180,25) #highscorebutton-settings highscorebutton.connect("clicked",
g.highscores) buttons = gtk.Fixed() #Buttons
Positionieren buttons.put(startbutton,0,5) buttons.put(highscorebutton,0,35) self.add(buttons) self.show_all() self.connect("destroy",
gtk.main_quit) #destroy window when Alt-F4 is pressed def startButtonPressed(self,
widget): g.game startbutton.set_sensitive(False) GUI() gtk.main()
Don't email to hereI'm now supporting the experiment spamschlucker.org too :)