Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,373
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
27
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. #!/usr/bin/python import pygtk import gtk pygtk.require("2.0") class Welcome: def __init__(self): self.glade = "welcome.glade" self.builder = gtk.Builder() self.builder.add_from_file(self.glade) self.window = self.builder.get_object("window1") self.lable = self.builder.get_object("label1") dic = { "on_window1_destroy" : self.exit,"on_button1_clicked":self.displaymessage} self.builder.connect_signals(dic) self.window.show() self.lable.hide() def exit(self, widget, data=None): gtk.main_quit() def displaymessage(self, widget, data=None): self.lable.show() if __name__ == "__main__": wel = Welcome() gtk.main()