Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
hi
thank you for this tutorial, i just started learning pygtk but it take much time to make GUI with gtk directly in code so i searched for something like qt-designer and here i found this nice tutorial :) .but i have a question how to call a function with arguments when the button is pressed , i mean i want to call this function :
def btnHelloWorld_clicked(self, widget, txt):
print “Hello World! %s” % txt
so how could i mention the argument txt :
dic = { “on_btnHelloWorld_clicked” : self.btnHelloWorld_clicked}
self.wTree.signal_autoconnect(dic)
thanks
#!/usr/bin/env python
import sys
try:
import pygtk
pygtk.require("2.0")
except:
pass
try:
import gtk
import gtk.glade
except:
sys.exit(1)
class simpleData(object):
def __init__(self, text):
self.text = text
class HellowWorldGTK:
"""This is an Hello World GTK application"""
def __init__(self):
#Set the Glade file
self.gladefile = "pyhelloworld.glade"
self.wTree = gtk.glade.XML(self.gladefile)
#Create our dictionay and connect it
dic = {"on_MainWindow_destroy" : gtk.main_quit }
self.wTree.signal_autoconnect(dic)
button = self.wTree.get_widget("btnHelloWorld")
button.connect("clicked", self.btnHelloWorld_clicked
, simpleData("Text"))
def btnHelloWorld_clicked(self, widget, data):
print "Hello World: ", data.text
data.text = "New Text"
if __name__ == "__main__":
hwg = HellowWorldGTK()
gtk.main()
Hello World: Text
Hello World: New Text
Report from our correspondent (reporter Gu Xiaoyu) yesterday, nike factory wang Jianzhou of Chinese mobile president is entering the throughout the country disclose during two meetings, chinese shift considers to become a shareholder what the operation nike factory store below wide cable division holds TV business is medium wide transmission company.
Wang Jianzhou confirms, chinese shift considers to will be passed the means that become a shareholder and in wide nike outlets transmission undertakes cooperative. Trade after finishing, wide transmission basically is in charge of content and network in, and Chinese shift basically is in charge of client management and sale. Additional, nike outlet wide cable system won't be changed after Chinese shift becomes a shareholder to in of wide transmission accuse equity.
Last year, wide transmission got the Ministry of finance note in endowment, partner also by wide report total bureau change of radio management board is the Ministry of finance, and in wide transmission also nike outlet stores upgrades the directly under unit that becomes wide report total bureau. gucci outlet stores
As we have learned, in March 2009 propagation of mobile Ceng Hezhong sows China the exclusiveness that signed by a definite date 3 years " TD+CMMB " gucci handbags outlet bind sale cooperation agreement, be about to in the CMMB of wide transmission operation holds strong>gucci outlet store
TV business exclusive inside in park China's mobile and custom-built TD mobile phone. Nevertheless this agreementjingrui ZL was about to expire in March this year, shift of after this China and in wide transmission adopts mode of what kind of collaboration to also suffer the outside to pay close attention to quite in admiral of mobile phone TV.list of items you needspace suit,fake watches, check wellness certificate, Garden dresses check ticket on the Virgin Galactic Space Shuttle, check. But how will you have the ability to tell the time in space? Why using the OMEGA Speedmaster Expert watch, bridal wedding dress . clearly Cheap Bridesmaid Dresses . . Tags black wedding gowns corset wedding gowns . .fake watches The Premium AvantGarde TAG Heuer Collection inspired by the unrivalled Motor Racing Heritage of a Swiss Watchmaking Legend.Grand CARRERA.Superchargind the AvantGardeThe chassis are audaciously styled, vintage wedding dresses . built for speed, of an inestimable prestige and allure. Inside, radically new engines redefine the pace and power of Swiss avantgarde engineering.This season, TAG Heuer reaffirms its unchallengeable claim because the No. 1 watch brand in motor sports with an extraordinary new line up of premium Grand CARRERA automatic chronographs and watches revved to a peak degree of luxury efficiency.Much more than daring
conservateur. Orchestre philharmonique de Vienne est spécialisé dans le commandement et avec une variété de monde master class de coopération et de super-orchestre de la «résilience» pour absorber les différents styles artistiques. Les performances, l,ensemble a été l,hôte du monde, red bridesmaid dresses chef d,orchestre Zubin haut. Meta sur la même scène. Qui avait un encours World Class Award winning artist, plus de 20 ans mother of the bride dresses . , avait été la première fois dirigé l,Orchestre philharmonique de Vienne, et l affordable wedding dresses . ,orchestre joua de, et en 2001, l,Orchestre philharmonique de Vienne a été nommé «chef d,orchestre honoraire, cheap prom dresses . le titre. Meta nécessairement réalisées à Vienne pour les tonalités classiques d,ajouter plus de couleur wedding dresses . . Mars voyage à Beijing est la quatrième visite de l, halter dress Orchestre philharmonique de Vienne réalisée. Adhérer à l,orchestre
1 to 8 of 8