def __init__(self,MainGrid):
Gtk.VBox.__init__(self)
self.btn1=Gtk.Button()
self.btn1.set_image(Gtk.Image.new_from_icon_name("filenew",Gtk.IconSize.DIALOG))
self.btn1.set_name("button1")
self.add(self.btn1)
#
# self.win_width = MainGrid.window.win_width
# self.win_height = MainGrid.window.win_height
# wid = self.win_width * 0.1
# hei = self.win_height
# print "requested width: ",wid
# print "requested height: ",hei
# print "-----------------------------"
# self.set_size_request(wid, hei)
评论列表
文章目录