Hello,
I go thrugh number of tutorials and steel can't find one simple thing (or I can't understand how to do this). My question is this:
if we make "any" function like this:
def myfunc():
#code here:
return
and have a class (gtk or wxWidget) in which we create a Label
class MyLabel():
#code here
#end class
mainloop()
how to change Label inside class MyLabel from myfunc?
I understand how buttons and events work, but i have no idea how to change label, or text from function outside class. ie time triggered timer or any result returned by function which periodicaly change its value?
or is there any way to make label autoupdating? / refreshing?
Tnx for your time and sorry for my english!
I go thrugh number of tutorials and steel can't find one simple thing (or I can't understand how to do this). My question is this:
if we make "any" function like this:
def myfunc():
#code here:
return
and have a class (gtk or wxWidget) in which we create a Label
class MyLabel():
#code here
#end class
mainloop()
how to change Label inside class MyLabel from myfunc?
I understand how buttons and events work, but i have no idea how to change label, or text from function outside class. ie time triggered timer or any result returned by function which periodicaly change its value?
or is there any way to make label autoupdating? / refreshing?
Tnx for your time and sorry for my english!
Comment