Python Forum
Trying to use code from WxPython GUI Toolkit
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to use code from WxPython GUI Toolkit
#4
wx.Frame is a class. If you don't make your own class, you'll probably end up calling it to build a frame. If you do make your own class, it'll probably use wx.Frame as a parent, which is how your custom class actually works (wx.Frame does the heavy lifting). Having parentheses in a class definition like that looks weird, because it's almost never what you want to be doing (unless it's a function that returns a dynamic class or something, but there's probably better ways to accomplish that anyway).
Reply


Messages In This Thread
RE: Trying to use code from WxPython GUI Toolkit - by nilamo - Jun-26-2018, 05:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Which GUI toolkit creating tool to measure distance/area on image kboortz 1 3,396 Aug-29-2020, 11:34 AM
Last Post: Larz60+
  Which GUI toolkit to use if less resource consumption is a priority. NIHILIST 1 2,323 Aug-28-2020, 08:03 PM
Last Post: jefsummers
  [WxPython] Process finished with exit code -1073741819 (0xC0000005) Kangaroo 4 3,281 Apr-06-2020, 05:43 PM
Last Post: Kangaroo
  Best GUI toolkit to learn Vicolas 4 3,192 Jan-24-2019, 07:59 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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