Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Python - GTK GUI - Tutorial #2 - Close Base Window

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,348
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 20, 2010

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (metalx1000)

  • I am learning a lot thanks to you.

  • @trailingdot: You are welcome.

  • You convinced me to start with PyGTK after all. i tried PyQt4 a bit but I liked how PyGtk looks like so I'm gonna learn it and then learn PyQt.

  • @ACPCalin: When I'm done with the GTK tutorials, I'm going to be doing Qt4 tutorials. So, keep watching.

  • Did you intend for the video to have so much extra time on it? Thanks for today's tutorial, can't wait for the next one! :)

  • @russjr08: When i capture the video i capture the video in ogv format. The current version of ogv gets messed up when you upload it to Youtube. So, to upload the video i have to first convert it to a mp4 avi. Some times in the conversion it does that.

Top Comments

  • Question: in the destroy function definition, you set up the function to receive three arguments--self, widget, and Data (with data defaulted to NONE, I presume). Yet, you called (or connected) the window to the def without sending any arguments. Why?

see all

All Comments (11)

Sign In or Sign Up now to post a comment!
  • @tardis2005 self argument is default in python at every class method. Widget parameter is automatically passed. It is defaulted to signal sender (in example when you click the button named "button" and button sends signal "btn_clicked" widget set is gtk.button type object named "button"). Data is passed when connecting signals with list of arguments. I think in function definition data could be skipped (or not, try yourself). The reason why data was not sent is simple: we are not using any.

  • how come you run the function destroy()

    in a paremeter?

  • @metalx1000 oh! Good improvising putting the annotation though for the playlist! I would have never guessed :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more