|
|
Am I the only person on the planet who liked Clippy?
|
|
|
|
|
|
Damn it, I knew the a-holes who did that final purge didn't check their work.
Software Zen: delete this;
|
|
|
|
|
|
|
yep
|
|
|
|
|
Tim Deveaux wrote: yep Good thing I didn't say foxtrot, you would have said 'yep' four times.
|
|
|
|
|
This really is more of a poll and not a technical question.
I'm wondering what is _really_ used to build the User Interface for python programs?
I know there is Django (web-based python that would use HTML), but what about desktop apps?
Is it still 95% Tkinter? Just curious what you Professional Python Devs are using.
EDIT
Secondary: Maybe desktop apps are just out for Python???
In that case, is that the answer...Most Python is just used for command-line scripting type of apps, data-type apps that work on data with no graphical output?
|
|
|
|
|
raddevus wrote: Maybe desktop apps are just out for Python???
That's what I like to think - I've yet to see a decent Python UI maybe you go IronPython if that's what you need
|
|
|
|
|
Thanks for the input. It does seem as if there isn't a great way to build a UI that python uses.
|
|
|
|
|
I don't do much Python myself, but some of the guys where I work have achieved decent results with [^]Kivy
|
|
|
|
|
Thanks I'll check it out.
|
|
|
|
|
wxPython, with the added help of wxFormBuilder, (because writing interface code/data by hand is hell).
|
|
|
|
|
Asday wrote: wxPython, with the added help of wxFormBuilder
Searched on this and I see that it says this is "bundled" with python and it is an alternative to tkinter. Thanks. Basically what I'm learning is there isn't a great way to add a GUI on top of python. But also understand Python may be used for other types of things too.
|
|
|
|
|
I don't think wxPython is part of the stdlib at all, is it? That's news to me.
I also don't particularly agree with you that there "isn't a great way to add a GUI on top of Python". When you use Visual Studio to make a XAML or WinForms interface, the code that gets written by that is still really mealy awful code, but because the tool writes it for you, you don't notice as much. It's the same with wxFormBuilder, it just happens to be third party.
I understand you can do similar with Glade and GTK.
|
|
|
|
|
Asday wrote: I don't think wxPython is part of the stdlib at all, is it? That's news to me.
I believe you are correct.
However, it was quite easy to get it installed in my Anaconda environment.
conda install -c conda-forge wxpython
After that there is a very simple example that worked great.
import wx
app = wx.App()
frm = wx.Frame(None, title="Hello World")
frm.Show()
app.MainLoop()
Worked great!
wxPython, for the win!
|
|
|
|
|
Indeed. You'll wanna make sure you've got phoenix (wxPython version >=4) installed, and definitely for sure use wxFormBuilder instead of writing your interfaces by hand.
|
|
|
|
|
Haven't done Python UI stuff in a while, but when I did -- PyQt (I used 4, but I believe there's a 5 variant now). I really found it to be quite rewarding. IIRC you can code by hand (which I preferred) or use QtDesigner to code UIs WYSIWIG style and use them in Python.
PyQt is cross-platform and, I found, looks better than wxPython, which I also found to be way more difficult and restraining, since it tries to fit a generic paradigm to GTK on linux, Windows native UI and Darwin native UI. Qt has the freedom to provide a unified way to work on things and stuff actually works -- then the output is styled by default to feel native on the hosting platform.
------------------------------------------------
If you say that getting the money
is the most important thing
You will spend your life
completely wasting your time
You will be doing things
you don't like doing
In order to go on living
That is, to go on doing things
you don't like doing
Which is stupid.
|
|
|
|
|
PyQt sounds interesting ... I am trying to learn Python in my
spare time (if any left ...), and indeed, Python GUI dev is not obvious
when looking from C#/WinForm or C++/MFC perspective.
I will give PyQt (with PyCharm) a try ...
Thanks for the suggestion,
|
|
|
|
|
Davyd McColl wrote: PyQt (I used 4, but I believe there's a 5 variant now)
Thanks for the info. I will check it out.
|
|
|
|
|
I actually quite like wx's native widget implementation - it buys you the learnt familiarity with the conventions of the platform your user uses, for free.
|
|
|
|
|
I have not used in recently but once had to make a GUI and found that easygui, https://pypi.org/project/easygui/ was in fact quite easy to use. The GUI choices are basic but functional
|
|
|
|
|
I will take a look at it. Thanks for the info.
|
|
|
|
|
Flask is another web-based approach to providing a GUI for Python scripts, which seems to have a somewhat less steep learning curve than Django. It is easier to learn what you need to know for a particular project and progressively build on this.
|
|
|
|