I have source code from January 2008 for a no longer supported
application. The UI is written in a version of Qt that will not run in the
versions installed here. I'd like to get it working. Is there a procedure or
tool to convert files from Qt to wxPython?
Some files are written in Python, others are XML. Not being familiar with
Qt I'm not sure how to translate, especially since Qt modules are imported.
Asking because maybe it is easier to convert to main wxWidgets rather
than wxPython...
Thank you.
···
On Mon, Sep 14, 2015 at 9:02 PM, Igor Korot <ikorot01@gmail.com> wrote:
Thank you.
On Sep 14, 2015 8:31 PM, "Rich Shepard" <rshepard@appl-ecosys.com> wrote:
I have source code from January 2008 for a no longer supported
application. The UI is written in a version of Qt that will not run in the
versions installed here. I'd like to get it working. Is there a procedure
or
tool to convert files from Qt to wxPython?
Some files are written in Python, others are XML. Not being familiar
with
Qt I'm not sure how to translate, especially since Qt modules are
imported.
On Monday, September 14, 2015 at 7:31:28 PM UTC-5, fuzzydoc wrote:
I have source code from January 2008 for a no longer supported
application. The UI is written in a version of Qt that will not run in the
versions installed here. I’d like to get it working. Is there a procedure or
tool to convert files from Qt to wxPython?
Some files are written in Python, others are XML. Not being familiar with
Qt I’m not sure how to translate, especially since Qt modules are imported.
Your thoughts are appreciated.
Rich
Hopefully your application was written using MVC principles. As long as the view is as separate as it can be from the actual business code / logic, then the transition shouldn’t be too bad. You’ll basically have to rewrite the user interface and wire it up to the backend code, but the backend code is usually the hardest part in my opinion.
If you posted screenshots of the application, we could tell you what widgets to use in wxPython.
I have source code from January 2008 for a no longer supported
application. The UI is written in a version of Qt that will not run in the
versions installed here. I'd like to get it working. Is there a procedure
or
tool to convert files from Qt to wxPython?
Some files are written in Python, others are XML. Not being familiar
with
Qt I'm not sure how to translate, especially since Qt modules are
imported.
Your thoughts are appreciated.
Rich
Hopefully your application was written using MVC principles. As long as the
view is as separate as it can be from the actual business code / logic, then
the transition shouldn't be too bad. You'll basically have to rewrite the
user interface and wire it up to the backend code, but the backend code is
usually the hardest part in my opinion.
If you posted screenshots of the application, we could tell you what widgets
to use in wxPython.
The widgets transition is usually pretty straightforward:
QApplication -> wx.App
QDialog -> wx.Dialog
QWindow -> wx.WIndow
etc.
···
On Tue, Sep 15, 2015 at 9:50 AM, Mike Driscoll <kyosohma@gmail.com> wrote:
On Monday, September 14, 2015 at 7:31:28 PM UTC-5, fuzzydoc wrote:
- Mike
--
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 wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If I knew how the UI was written before it would be simple to recreate it
using wxPython. But, the application won't load:
$ python setup.py install
File "setup.py", line 2
cd src
^
SyntaxError: invalid syntax
So, I cd to the src/ subdirectory and try again:
$ python pyBallisticsGUI.py Traceback (most recent call last):
File "pyBallisticsGUI.py", line 166, in <module>
ui = BallisticsMainWindow()
File "pyBallisticsGUI.py", line 27, in __init__
Ui_MainWindow.__init__(self, parent, name, fl)
TypeError: object.__init__() takes no parameters
I think it's a syntax error because the application is not installed, but
why setup.py cannot find the src/ subdirectory remains a mystery. I've
drilled down in src/ and still cannot get it to load.
Rich
···
On Tue, 15 Sep 2015, Mike Driscoll wrote:
Hopefully your application was written using MVC principles. As long as
the view is as separate as it can be from the actual business code /
logic, then the transition shouldn't be too bad. You'll basically have to
rewrite the user interface and wire it up to the backend code, but the
backend code is usually the hardest part in my opinion.
If you posted screenshots of the application, we could tell you what
widgets to use in wxPython.
Less than 500K, gpl3 licensing. Let me try a couple of things today before
making a tarball and sending it on. The author apparently used a versioning
system, but the directory structure is quite messy. I'll try to clean that
up as a first step.
Thanks,
Rich
···
On Tue, 15 Sep 2015, Mike Driscoll wrote:
How much code are we talking about here? Is it proprietary? I'm sure one
of us could figure out how to get it to run.
How, exactly, did you acquire this file? That's a "tar" archive. It's
like the Linux version of "zip". You can try renaming it and
extracting from the archive:
mv setup.py pyball.tar
tar xvf pyball.tar
Perhaps there will be an actual "setup.py" in there.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Doesn't need to be renamed; tar xvf setup.py extracts it. There's another
copy of the path leading to the same file as the shell script. Really messy.
That file can be deleted; it will not work regardless.
Rich
···
On Tue, 15 Sep 2015, Tim Roberts wrote:
Perhaps there will be an actual "setup.py" in there.
Spent a little time cleaning out the cruft and fixed __init()__ so the
application now loads. Seeing the UI and finding the code for it in one of
the modules gives me the information I need to convert it to wxPython and
clean it up.
Thanks to all who provided comments and suggestions.
Rich
···
On Mon, 14 Sep 2015, Rich Shepard wrote:
I have source code from January 2008 for a no longer supported
application. The UI is written in a version of Qt that will not run in the
versions installed here. I'd like to get it working. Is there a procedure or
tool to convert files from Qt to wxPython?