Re: Importing wxWidgets Help
RF <[email protected]> Wed, 21 Apr 2021 20:12:59 -0700 (PDT)
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
I uploaded an older copy of my pxCore.py file. Attached is my latest version that I should have uploaded previously. On Wednesday, April 21, 2021 at 8:11:09 PM UTC-7 RF wrote: > So I decided to start out by incorporating my class MyTreeCtrl(wx.TreeCtrl): > at the top of my core project file pxCore.py. I have attached it as a zip > file. > > I just can't figure out how to make the call to create the TreeCtrl > without getting some kind of error. > > Currently the error in line 6 is: TypeError: TreeCtrl(): arguments did not > match any overloaded call: > > Thank you for any help. > > On Wednesday, April 21, 2021 at 3:35:38 PM UTC-7 RF wrote: > >> >> I've written a class TreeCtrl python file. I'm trying to import it into >> my project's main python file. >> >> I can't find any examples of how this should be done. The examples I've >> found are very simple ones like Car.py located here: >> https://www.guru99.com/import-module-python.html >> >> But those are very simple examples and if I copy their structure they >> don't work for wx widgets. >> >> My project will use various widgets such as TreeCtrl, StyledTextCtrl, >> Toolbar and Menu. I thought I would put each of them into their own class >> file and import them into my main core python file (to keep file sizes >> down). >> >> Does that sound reasonable or should I just have the classes at the top >> of my main python file and not do the imports? >> >> -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/9766855b-106d-41b0-b57f-99882c64a3a6n%40googlegroups.com.
pxCore2.zip
(application/x-zip, 976 B) - not displayed