set window title to program name
This commit is contained in:
parent
6c09225b44
commit
9741db038e
@ -2,8 +2,9 @@
|
||||
import gtk
|
||||
|
||||
class Window:
|
||||
def __init__(self):
|
||||
def __init__(self, title):
|
||||
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
|
||||
self.window.set_title(title)
|
||||
self.window.connect("destroy", self.destroy_event)
|
||||
self.window.add(gtk.Label('Hello World'))
|
||||
self.window.show_all()
|
||||
|
Loading…
x
Reference in New Issue
Block a user