mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-04 04:25:46 -04:00
initial import of cleanroom tool
This commit is contained in:
parent
db75147c51
commit
14e44399a9
4 changed files with 144 additions and 0 deletions
20
tools/cleanroom/tmp_cleanui.py
Normal file
20
tools/cleanroom/tmp_cleanui.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import sys
|
||||
import gtk
|
||||
import gtk.glade
|
||||
|
||||
class HellowWorldGTK:
|
||||
"""This is an Hello World GTK application"""
|
||||
def __init__(self):
|
||||
self.gladefile = "cleanroom.glade"
|
||||
self.wTree = gtk.glade.XML(self.gladefile,"window1")
|
||||
|
||||
self.image1 = self.wTree.get_widget("orig_texture")
|
||||
self.image1.set_from_file("sw2_1.gif")
|
||||
|
||||
self.wTree.get_widget("window1").connect("destroy", gtk.main_quit)
|
||||
|
||||
if __name__ == "__main__":
|
||||
hwg = HellowWorldGTK()
|
||||
gtk.main()
|
Loading…
Add table
Add a link
Reference in a new issue