python - Resizing child widget by resizing dialog box with mouse -


i using pygtk create dialog box following code:

def __init__(self):         gtk.dialog.__init__(self,         title="add new block",         buttons=(gtk.stock_cancel, gtk.response_reject, gtk.stock_ok, gtk.response_ok),     )   self.set_size_request(600, 300) vbox = gtk.vbox() self.vbox.pack_start(vbox, true, true, 0) self.block_hbox = gtk.hbox(gtk.false,0) vbox.pack_start(self.block_hbox,false,false,7) self.block_hbox.show()   self.block = gtk.label("enter block name") self.block_hbox.pack_start(self.block,false,false,7)     self.block.show() self.block_e = gtk.entry() self.block_e.set_size_request(310,-1) self.block_hbox.pack_end(self.block_e,false) self.block_e.show() 

when try increase size of dialog box using mouse cursor, size of child widget (gtk.entry) not change. want increase size increasing dialog box's size. how can this?

i got mistake. should have used:

self.block_hbox.pack_end(self.block_e,true) 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -