|
Nah ... he's reliable !
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I'm watching you… | CommitStrip[^]
It's a good feature, but ... it does get kinda stupid from time to time ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Yep. In a few minutes I'm going to wrestle with that thing for the rest of the day. Again. In the last few months i had a lot of fun with this feature by using VS as a text editor for my assembly code. It actually kept quiet, but once in a while I let it 'check' my code, have a good laugh at the hysterical nonsense it 'found' in my code and then build it with 0 errors or warnings. I still hope that it just drops dead one day.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
VS is quite configurable. When I first started using it, I felt all the warnings so annoying that I turned off everthing that could be turned off. Gradually, I have become accustomed to those markers it puts into the code. They are like ads in the newspaper: I can easily read the article even with an ad to the right. When it suits me, I right click it to see if it should be fixed up. Often it can be ignored (such as This variable should be made read-only, when I haven't yet written the code that willl use it), but often they are also timely reminders.
I am actually far more bothered by those editors to use a whole bouquet glaringly bright colors to identify the class of each and every token. As if I didn't know that "if" is a reserved word and "+" is an operator... In some editors, the screen looks like an art painter's palette; the code structure drowns in all the visual effects. (I do not use such editors myself, and every time some other developer displays his code in that way, I repeat to myself that his editor is not for me! )
VS makes use of color as well, but in a much softer, limited way. It is not fat signal read, florescent green and sun-brigth yellow, on a black background, but a few less saturated colors that doesn't blind you. The way you are hinted may be as subtle as changing from black to grey color, or a discrete dotted underlining.
So today, I have turned a lot of warnings back on. It is obviously a matter of habit (those people wanting their screen to look like a caleidoscope of colors obviously have no problems focusing on the program structure). Right now I am working with Javascript (embedded in an application, so I can't use a browser's debugging facilities), and every time I run into some runtime bug/issue I long back to VS where I would have been told at editing time.
|
|
|
|
|
|
And he'd have got away with if it hadn't been for those meddling kids!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
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.
|
|
|
|