demo converter: updated

Here's the latest version of demo _converter.py

It replaces a few imports suchas:
from wxPython.wx import *
with
from wxPython import wx

This script almost completely converts the demo. Unfortunatly, there are about 4-6 demo files that are named the same as their wx.counterparts which clashes with the function of this script. It's not likely that this will cause you problems converting your own programs, unless you tend to name modules wxStaticText.py and subsequently impor them into a project where you used "from wxPython.wx import *" also.

All in all 95 percent of the demo is functional after running this script, and requires a little hand editing to correct the demo. I lost track of my patch to the original demo source, so I couldn't create a patch for Robin, but it may be just as well. The files that are broken probably should be renamed to avoid this conflict, but chore lies on Robin's sholders.

Hopefully you'll find this script useful, you most certainly will find it w/out warrenty :slight_smile: But thats okay, it's fairly simple logic, so you should be able to tailor it to your needs.

-Joe

demo_convert.py (26.5 KB)