永发信息网

wx.python中的wx.Panel是必须的吗

答案:2  悬赏:30  手机版
解决时间 2021-03-16 13:52
  • 提问者网友:感性作祟
  • 2021-03-15 15:51
wx.python中的wx.Panel是必须的吗
最佳答案
  • 五星知识达人网友:患得患失的劫
  • 2021-03-15 16:40
我试了一下,貌似如果只有一个组件的话,默认是填满整个窗口,两个就没问题了。 如果真只有一个,可以试试布局 class PosFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, size = (200, 200), pos = (200, 200)) panel1 = w...
全部回答
  • 1楼网友:西岸风
  • 2021-03-15 17:48
wxapp -> wxframe -> wxpanel -> wxsizer -> wxcontrol frame vs. panel use a frame when you need a window for your application; use a panel (within that frame) to place other widgets onto. don't place (most) widgets right onto the frame itself; there are some problems with that. you can and often will use multiple panels within the same frame. 当需要为应用程序创建窗口时使用框架;要向上放置其他部件时使用框架内的面板。 别直接在框架上放置过多部件,那样会带来一些问题。 在同一个框架内可以使用多个面板。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯