wxPython画界面时,提示如下错误:
wxPython Gtk-WARNING **: Negative content height -5 (allocation 5, extents 5x5) while allocating gadget (node button, owner GtkButton)
这表示Button控件没有高度,可把窗口界面的大小放大一点就可以了。
此篇博客分享了在使用wxPython绘制界面时遇到的Negative content height警告,提出通过增大窗口尺寸来解决Button控件高度问题的方法。
wxPython画界面时,提示如下错误:
wxPython Gtk-WARNING **: Negative content height -5 (allocation 5, extents 5x5) while allocating gadget (node button, owner GtkButton)
这表示Button控件没有高度,可把窗口界面的大小放大一点就可以了。
2375

被折叠的 条评论
为什么被折叠?
