Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 81476b1f7b3bd1e74b17495490537d1c > files > 35

python-kiwi-docs-1.9.38-3.mga4.x86_64.rpm

#!/usr/bin/env python
import gtk

from kiwi.ui.gadgets import quit_if_last
from kiwi.ui.views import BaseView

class MyView(BaseView):
    gladefile = "hey"
    def __init__(self):
        BaseView.__init__(self, delete_handler=quit_if_last)
        text = self.the_label.get_text() # attached by constructor
        self.the_label.set_markup('<b>%s</b>' % text)
        self.the_label.set_use_markup(True)
        self.set_title("Avi's declaration") # change window title

app = MyView()
app.show()
gtk.main()