I have an app written in python, but I want to add a windows
GUI front end to it.
I have another question. I have an app written in python, but I want to add a windows GUI front end to it. Can this be done in python? What packages would allow me to do that?
I have another question. I have an app written in python, but I want to
add a windows GUI front end to it. Can this be done in python? What packages would allow me to do that?
On Apr 1, 2023, at 10:37 AM, Eryk Sun <[email protected]> wrote:
On 4/1/23, Jim Schwartz <[email protected]> wrote:
I have another question. I have an app written in python, but I want to
add a windows GUI front end to it. Can this be done in python? What
packages would allow me to do that?
Here are a few of the GUI toolkit libraries in common use:
* tkinter (Tk)
* PyQt (Qt)
* PySide (Qt)
* wxPython (wxWidgets)
* PyGObject (GTK)
tkinter is included in Python's standard library.
Are there any ide’s that will let me design the screen and convert it to python? I doubt it because it was mentioned that this is time consuming.
Thanks for the responses everyone. I appreciate it.
Sent from my iPhone
On Apr 1, 2023, at 10:37 AM, Eryk Sun <[email protected]> wrote:
On 4/1/23, Jim Schwartz <[email protected]> wrote:
I have another question. I have an app written in python, but I want to >>> add a windows GUI front end to it. Can this be done in python? What
packages would allow me to do that?
Here are a few of the GUI toolkit libraries in common use:
* tkinter (Tk)
* PyQt (Qt)
* PySide (Qt)
* wxPython (wxWidgets)
* PyGObject (GTK)
tkinter is included in Python's standard library.
Are there any ide’s that will let me design the screen and convert it to python? I doubt it because it was mentioned that this is time consuming.
Thanks for the responses everyone. I appreciate it.
Are there any ide’s that will let me design the screen and convert it to python? I doubt it because it was mentioned that this is time consuming.
Thanks for the responses everyone. I appreciate it.
Sent from my iPhone
On Apr 1, 2023, at 10:37 AM, Eryk Sun <[email protected]> wrote:
On 4/1/23, Jim Schwartz <[email protected]> wrote:
I have another question. I have an app written in python, but I want to >> add a windows GUI front end to it. Can this be done in python? What
packages would allow me to do that?
Here are a few of the GUI toolkit libraries in common use:
* tkinter (Tk)
* PyQt (Qt)
* PySide (Qt)
* wxPython (wxWidgets)
* PyGObject (GTK)
tkinter is included in Python's standard library.
--
https://mail.python.org/mailman/listinfo/python-list
On 4/1/2023 1:21 PM, Jim Schwartz wrote:
Are there any ide’s that will let me design the screen and convert it
to python? I doubt it because it was mentioned that this is time
consuming.
Depends on what you mean by "let me design the screen", but Pyside
(which I think is now called Pyside2) may be suitable. It is part the
Qt framework.
Sent from my iPhone
On Apr 1, 2023, at 10:37 AM, Eryk Sun <[email protected]> wrote:
On 4/1/23, Jim Schwartz <[email protected]> wrote:
I have another question. I have an app written in python, but I
want to
add a windows GUI front end to it. Can this be done in python? What >>>> packages would allow me to do that?
Here are a few of the GUI toolkit libraries in common use:
* tkinter (Tk)
* PyQt (Qt)
* PySide (Qt)
* wxPython (wxWidgets)
* PyGObject (GTK)
tkinter is included in Python's standard library.
On 4/1/2023 1:28 PM, Thomas Passin wrote:
On 4/1/2023 1:21 PM, Jim Schwartz wrote:
Are there any ide’s that will let me design the screen and convert it
to python? I doubt it because it was mentioned that this is time
consuming.
Depends on what you mean by "let me design the screen", but Pyside
(which I think is now called Pyside2) may be suitable. It is part the
Qt framework.
I should have added that in my experience, the screen layout of controls
is not the hardest and most time-consuming part of developing GUIs. The
hard part is getting the screen elements and other components to do what
you want in the way that you want it.
For example, the Tk.Text class can be used as a fairly full-featured
editor, but try figuring out how to highlight part of the text - not so obvious. Or say you decide you want to have a button flash when
clicked, but you don't like the standard flash effect and want to change
it. Those are a few of the kinds of things that you have to deal with
and that soak up the time. It's not usually screen design.
Sent from my iPhone
On Apr 1, 2023, at 10:37 AM, Eryk Sun <[email protected]> wrote:
On 4/1/23, Jim Schwartz <[email protected]> wrote:
I have another question. I have an app written in python, but I
want to
add a windows GUI front end to it. Can this be done in python? What >>>> packages would allow me to do that?
Here are a few of the GUI toolkit libraries in common use:
* tkinter (Tk)
* PyQt (Qt)
* PySide (Qt)
* wxPython (wxWidgets)
* PyGObject (GTK)
tkinter is included in Python's standard library.
--
https://mail.python.org/mailman/listinfo/python-list
Look at wxGlade (a project designed for wxWidgets). You will design
you layout and then just save it as a py file.
On 4/1/23, Jim Schwartz <[email protected]> wrote:
Are there any ide’s that will let me design the screen and convert it to >> python? I doubt it because it was mentioned that this is time consuming.
Thanks for the responses everyone. I appreciate it.
For Qt, the WYSIWYG UI editor is Qt Designer. The basics are covered
in the following PySide tutorial:
https://www.pythonguis.com/pyside2-tutorial
I have another question. I have an app written in python, but I want to add a windows GUI front end to it. Can this be done in python? What packages would allow me to do that?
Thanks.
On 4/1/23, Jim Schwartz <[email protected]> wrote:
I have another question. I have an app written in python, but I want
to add a windows GUI front end to it. Can this be done in python?
What packages would allow me to do that?
Here are a few of the GUI toolkit libraries in common use:
* tkinter (Tk)
* PyQt (Qt)
* PySide (Qt)
* wxPython (wxWidgets)
* PyGObject (GTK)
tkinter is included in Python's standard library.
On 1 Apr 2023, at 18:47, Igor Korot <[email protected]> wrote:
I suggest going with wxPython/wxGlade.
On 1 Apr 2023, at 18:47, Igor Korot <[email protected]> wrote:
I suggest going with wxPython/wxGlade.
I ported all my wxPython code to PyQt and have not regretted it.
wxPython was (its been a while so may not be an issue now) far to
hard to make consistent across OS, my apps run on Linux, macOS and Windows.
I found that PyQt was easier to get working.
Barry
Are there any ide’s that will let me design the screen and convert it to python?
Having worked with both, I'd rather use PyQt, although Tk might be
easier to get a toy app going with. Both editing windows and packing
are easier for me to understand with PyQt, for one thing.
I have another question. I have an app written in python, but I want to add a windows GUI front end to it. Can this be done in python? What packages would allow me to do that?
Thanks.There is a GUI Generator for tkinter
OTOH, Qt isn't free for commercial use and the OP seems to be
speculating on coming up with a product to sell at some point.
Qt's commerical licensing is very hostile to small companies, I can say
that much. It's too bad really. But the LGPL will work for most
companies, except for those that might wish to use the embedded version,
such as in cars where being able to abide by the terms of the LGPL
becomes difficult.
I did a deep dive examination of GUI builders back aroundI also did evaluate all the GUI builder from time to time between
v2.6 and came away less than enthused. Things may have
improved since then but I've seen no real evidence of
that.
I also did evaluate all the GUI builder from time to time between
2000 and 2016 to find one that I could recommend to colleagues,
but could not find one. Then I started contributing to wxGlade
and I can say that since a few years it's as easy again to
build GUIs as it was with VB6.
I don't want to go back to coding GUIs manually. For most use
cases it's a waste of time and often it does not result in the
best GUI as it's not so easy to try out and rearrange elements.
Here are a few of the GUI toolkit libraries in common use:
* tkinter (Tk)
* PyQt (Qt)
* PySide (Qt)
* wxPython (wxWidgets)
* PyGObject (GTK)
tkinter is included in Python's standard library.
But any modern GUI toolkit has sizers and layout managers. If you're
manually placing elements you cannot deal with HiDPI or changing window sizes. Rearranging happens automatically when using sizers and layout managers.
GUI designer tools (Qt Creator, Visual Studio) can be used to assist and
help layout the skeleton, but ultimately the GUI is defined by code. And
I've tried wxGlade but never could get into it, or wxWidgets in general.
but the future of Qt is clearly QtQuick, so I've been learning that.For me QtQuick and QML are a step backwards by some ten years when
Has its warts, but in general I like the declarative paradigm. It's a learning curve. Overall it's fairly powerful, flexible and portable. I
That's what I hated with Qt Designer: it does not output Python code
but a .ui file.
This was the point where I could not recommend it to anyone.
I've tried wxGlade but never could get into it, or wxWidgets in general.
Which version? Up to 0.7.2 I agree.
For me QtQuick and QML are a step backwards by some ten years when
it comes to development speed.
It's as much 'fun' as doing GUIs with HTML and JavaScript.
Unfortunately, The Qt Company refused to provide an API for QtQuick to
be able to use it without QML.
Anyway, desktop development has long moved out of their focus
(around 15 years ago when Nokia acquired Trolltech). It's not where
their commercial customers are.
Well the thing is you don't need to generate Python code at all. Qt
provides a UI loader class that loads the UI file at run time, builds
the objects in memory, and connects all your signals for you.
So much
nicer than code generation.
Been a long time. I was initially turned off by the event handlingWhen starting with Python GUIs in 1999, I evaluated both.
system of wx compared to the signals and slots of Gtk and Qt.
On 02.04.2023 18:26, Michael Torrie wrote:
Been a long time. I was initially turned off by the event handlingWhen starting with Python GUIs in 1999, I evaluated both.
system of wx compared to the signals and slots of Gtk and Qt.
Qt event handling had an advantage for C++ where the wxWidgets
people had to use event tables. I don't know when wxWidgets
added dynamic event binding, but with wxPython I don't know
anything else than dynamic binding.
Regards,
Dietmar
--
https://mail.python.org/mailman/listinfo/python-list
On 02.04.2023 18:20, Michael Torrie wrote:
Well the thing is you don't need to generate Python code at all. Qt
provides a UI loader class that loads the UI file at run time, builds
the objects in memory, and connects all your signals for you.
I know, but having to load the .ui file is awkward.
Even worse, you lose things like code completion.
On 4/2/23 05:09, Dietmar Schwertberger wrote:
I also did evaluate all the GUI builder from time to time between
2000 and 2016 to find one that I could recommend to colleagues,
but could not find one. Then I started contributing to wxGlade
and I can say that since a few years it's as easy again to
build GUIs as it was with VB6.
[...]
But any modern GUI toolkit has sizers and layout managers. If you're
manually placing elements you cannot deal with HiDPI or changing window sizes.
On 4/2/23 05:09, Dietmar Schwertberger wrote:
I also did evaluate all the GUI builder from time to time between
2000 and 2016 to find one that I could recommend to colleagues,
but could not find one. Then I started contributing to wxGlade
and I can say that since a few years it's as easy again to
build GUIs as it was with VB6.
I don't want to go back to coding GUIs manually. For most use
cases it's a waste of time and often it does not result in the
best GUI as it's not so easy to try out and rearrange elements.
But any modern GUI toolkit has sizers and layout managers. If you're
manually placing elements you cannot deal with HiDPI or changing window sizes. Rearranging happens automatically when using sizers and layout managers.
That said, the future of GUIs is declarative, using XAML or some other domain-specific language like QML. Examples of this include QtQuick
(the long-term direction Qt is heading), and the various dot Net GUI
toolkits now popular including MS' own MAUI, WPF, Avalonia.
GUI designer tools (Qt Creator, Visual Studio) can be used to assist and
help layout the skeleton, but ultimately the GUI is defined by code. And
it works very well, is adaptive, and can automatically size and
rearrange. If you want portability to mobile devices, this is where it's at.
I've tried wxGlade but never could get into it, or wxWidgets in general.
I used to use GTK a lot and did use Glade back then, and dynamically
loaded the UI definition files at run time. Lately used more Qt with QtDesigner, and even extended Designer to support using some custom
widgets I made.
but the future of Qt is clearly QtQuick, so I've been learning that.
Has its warts, but in general I like the declarative paradigm. It's a learning curve. Overall it's fairly powerful, flexible and portable. I
have used the designer in Qt Creator a bit, but it's often faster and
just as intuitive to write it in QML, since you're going to be dropping
into QML frequently anyway to set properties (not unlike having to set
widget properties in Qt Designer. So I guess it's 6s using the
graphical designer vs straight Qt.
On 2023-04-02, Michael Torrie <[email protected]> wrote:
On 4/2/23 05:09, Dietmar Schwertberger wrote:
I also did evaluate all the GUI builder from time to time between 2000
and 2016 to find one that I could recommend to colleagues, but could
not find one. Then I started contributing to wxGlade and I can say
that since a few years it's as easy again to build GUIs as it was with
VB6.
[...]
But any modern GUI toolkit has sizers and layout managers. If you're
manually placing elements you cannot deal with HiDPI or changing window
sizes.
Ah, that's the brilliant thing about VB6 apps! They only work properly
on machines with the same resoultion and display/font configuration as
the developer.
On 01/04/2023 18:21, Jim Schwartz wrote:
Are there any ide’s that will let me design the screen and convert it to python?
There is nothing remotely like the VB or Delphi GUI builders.
I have another question. I have an app written in python, but I want to add >a windows GUI front end to it. Can this be done in python? What packages >would allow me to do that?
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 716 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 50:19:31 |
| Calls: | 12,115 |
| Calls today: | 6 |
| Files: | 15,010 |
| Messages: | 6,518,550 |
| Posted today: | 1 |