Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class UIBuilder
- glade = File.basename($0, ".*") + ".glade"
- if File.exists?(glade)
- gui = GladeUI.new(glade, @mapper)
- @threads << gui.consume_perform
- @threads << gui.consume_update
- @threads << gui.main
- @mapper << gui
- gui2 = GladeUI.new(glade, @mapper)
- @threads << gui2.consume_perform
- @threads << gui2.consume_update
- @threads << gui2.main
- @mapper << gui2
- end
- #more stuff
- end
Add Comment
Please, Sign In to add comment