Python Forum
[WxPython] TypeError: request for something already fulfilled?
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[WxPython] TypeError: request for something already fulfilled?
#11
The error
Error:
TypeError: wx.Window, wx.Sizer, wx.Size, or (w,h) expected for item
is showing what is expected.
item = one of the types shown in the error.
widget is a control, all controls/widgets inherit from wx.Window.
Controls are
  • Button
  • Checkbox
  • TextCtrl
  • Ect
A wx.Panel inherits from wx.Window and can also be used.

Sizers are used for laying out subwindows in a window.
You add (controls/widgets/windows all the same things) and other sizers to sizers.
Reply
#12
Thanks a lot, that makes it much more clear to me!
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020