Added: 1 year ago
From: metalx1000
Views: 3,631
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (21)

Sign In or Sign Up now to post a comment!
  • you saved me my life i was searching that thanks for all your tutorials

  • @nosoynadie19: No problem

  • I tried your way to create the exit button and a different way on the gtk website but both ways don't close the program it just stops responding. Any ideas why ?

  • @T27M: Post your code at pastebin and send me a link. I'll have a look.

  • Thanks for a not boring and informative vid man :)

  • @baladya4: no problem

  • Muito bom,

  • when i click exit on my window the window doesnt close but the console shows that i have clicked exit, any tips on what I might've done wrong?

  • @lpbug: Are you sure you "gtk.main_quit()" in the right place?

  • @metalx1000 well actually i think i figured it out, it's only when I run the script from python that I have this problem. If I open it by clicking on it (as opposed to pressing f5 in the python editing shell) it works out fine. Thanks for the reply though, I really appreciate it.

  • hey muy bien

    graciasss

    saludos

  • I needed to add to your import .. i needed to add (( import pygtk, sys )) in order to get my window to close with the Exit button ..

    but thanks for the videos great job please them comming.

  • sweeeeet. Good vid mate

  • why the rush u have 15mins bit.ly / cX9SQJ

    thanks, Great tutorials 

  • @Mubarzy: I don't time myself, and some times it just feels like I've been talking forever :)

  • Thanks! Although, I have a question, when did we make the "self" function. We are putting "self.something" but I don't know where we got the "self" from

  • @russjr08: I believe, self is just stating that it is in the same Class, I could be wrong. you don't need to put it, but I believe you may have difficulties calling an object in a different function if you don't use self.

  • @russjr08: I'll admit, some times I do things just because I know they work, but I may not have a 100% understanding on what is going on. When I first started programing it was years ago in Visual Basic. That has caused me to be very sloppy with my coding and I am still trying to break that habit. It's been years since I've been a Windows users and I'm still screwed of from the experience :)

  • @russjr08

    in Python the self is an argument passed automatically by the interpreter, it refers to the class you are working in, then it executes the __init__ function declaring its properties and methods, I'd suggest you to read Python OOP books, hope this helped (:

  • @russjr08 self is for identifying that the function is of the present class or class where u are writing that line

  • cool

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