开发者

Hide/Delete a StaticText in wxPython

I was wonder开发者_如何学JAVAing how to hide/delete a StaticText in wxPython?


Have you tried control.Hide() or control.Show(False)?


The widget's Hide/Show methods should work. If the widget is in a sizer, then you can use the sizer's Detach method to "hide" it but not destroy it. Otherwise, the sizer has a Remove method that will remove the widget and destroy it. And there's the widget's own Destroy method.


statictext.Show to show
and statictext.Hide to hide

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜