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?
@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.
@metalx1000 What I meant is that I LOVE THESE TUTORIALS! And I start to love PyGtk so please, take your time, there's no stress ;) I want to lean a lot from your tutorials! :)
@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.
I am learning a lot thanks to you.
trailingdot 6 months ago 3
@trailingdot: You are welcome.
metalx1000 6 months ago
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?
tardis2005 11 months ago
@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.
chronius9 10 months ago
how come you run the function destroy()
in a paremeter?
computerfis 1 year ago
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 1 year ago
@ACPCalin: When I'm done with the GTK tutorials, I'm going to be doing Qt4 tutorials. So, keep watching.
metalx1000 1 year ago
This has been flagged as spam show
@metalx1000 What I meant is that I LOVE THESE TUTORIALS! And I start to love PyGtk so please, take your time, there's no stress ;) I want to lean a lot from your tutorials! :)
ACPCalin 1 year ago
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 1 year ago
@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.
metalx1000 1 year ago
@metalx1000 oh! Good improvising putting the annotation though for the playlist! I would have never guessed :)
russjr08 1 year ago