Running class code from demo collection is failing.

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
In need of some credit
In need of some credit
Posts: 1
Joined: Thu Dec 05, 2019 9:55 pm

Running class code from demo collection is failing.

Post by leifhyrne » Thu Dec 05, 2019 10:01 pm

I started using the demo code from

Code: Select all

import wx
import wx.dataview as dv
class ExMain(wx.Frame):

    cnx = None
    index = 0

    def __init__(self):

        wx.Frame.__init__(self, wx.ID_ANY, "Title", wx.DefaultPosition, (400,400), wx.DEFAULT_FRAME_STYLE, "Simulator Main")

if __name__ == '__main__':
    app = wx.App()
    frame = NRTSimMain().Show()

This code produces the following errors:

frame = NRTSimMain().Show()
File ".\", line 13, in __init__
wx.Frame.__init__(self, wx.ID_ANY, "Title", wx.DefaultPosition, (350,200), wx.DEFAULT_FRAME_STYLE, "NRT Sorter Sim Main")
TypeError: Frame(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 1 has unexpected type 'StandardID'

Don't understand what is going on. I'm trying to get a basic (and I mean minimal) for going so I can start adding the listCtrl stuff...
Last edited by DavidHart on Thu Dec 05, 2019 10:31 pm, edited 1 time in total.
Reason: Added code-tags

User avatar
Posts: 14969
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Running class code from demo collection is failing.

Post by doublemax » Thu Dec 05, 2019 10:40 pm

The people from wxPython are probably better suited to help.
Use the source, Luke!

Post Reply