python - wxpython, hidding and showing an object with its defined flags -


If I add an item to one thing with some flags; It works great but if I hide it and then show it again, it shows that without using the flag !!! Why? How can I fix this?

ex:

  sizer.Add (self.listb, 1, wx.ALL | wx.EXPAND, 5) # - & gt; works great . . Self.listb.Hide () self.listb.Show () # - & gt; Brings the item back without the flag.   

Thanks a lot!

Show / hide task instead of using control, to show / hide function of BoxSystem try.

 . Sizer.Add (self.listb, 1, wx.ALL | wx.EXPAND, 5) # - & gt; Great Caesar works. Show (self.listb, False) sizer.Show (self.listb, true). .   

You can also try adding sizer.Layout () to the end if it still does not resolve your problem and refreshes the dimension is.

(If the use of self.listb as first AGL fails, try to cross the index number of your item within the box AI, can not quite remember what is correct Is;)

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -