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 ?
@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.
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 :)
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 (:
you saved me my life i was searching that thanks for all your tutorials
nosoynadie19 1 week ago in playlist Python GTK
@nosoynadie19: No problem
metalx1000 1 week ago
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 3 months ago
@T27M: Post your code at pastebin and send me a link. I'll have a look.
metalx1000 3 months ago
Thanks for a not boring and informative vid man :)
baladya4 4 months ago
@baladya4: no problem
metalx1000 4 months ago
Muito bom,
axanka4 6 months ago in playlist Python GTK
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 8 months ago
@lpbug: Are you sure you "gtk.main_quit()" in the right place?
metalx1000 8 months ago
@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.
lpbug 8 months ago
hey muy bien
graciasss
saludos
pepep14 10 months ago
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.
MrLukeSchott 11 months ago
sweeeeet. Good vid mate
Linux4UnMe 1 year ago
why the rush u have 15mins bit.ly / cX9SQJ
thanks, Great tutorials
Mubarzy 1 year ago
@Mubarzy: I don't time myself, and some times it just feels like I've been talking forever :)
metalx1000 1 year ago
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 1 year ago
@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.
metalx1000 1 year ago
@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 :)
metalx1000 1 year ago
@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 (:
SunInHerSmile 1 year ago
@russjr08 self is for identifying that the function is of the present class or class where u are writing that line
vadiethestar 1 year ago
cool
randOmazing 1 year ago