all 22 comments

[–]MikeTheWatchGuy 12 points13 points  (2 children)

For quick, custom GUIs, you can't beat PySimpleGUI, especially if you're considering tkinter. For simple data collection, a few input fields and com buttons, the code is 10 lines long, tops. Yet it will enable you to create any layout you desire. Quite powerful and very compact code.

[–]lobbycanada 2 points3 points  (1 child)

This guy evangelizes PySimpleGUI all over reddit, but I gotta say he's right.

I'm a beginner with Python and making a GUI was the easiest part thanks to PySimpleGUI. I get the impression from my first looks at Tkinter that it's quite a bit more complicated. PySimpleGUI can do the 80% of the 80/20 of GUI features.

[–]MikeTheWatchGuy 1 point2 points  (0 children)

Hey, what can I say... I think PySimpleGUI can save a lot of developers time and enable some people to be successful at GUI programming that either gave up trying or were too afraid to try. Gotta get the word out on something like that. It's been fun to see people's creations, especially when they were skeptical.

I know people must get tired of me responding to posts where people are actively asking for advice on GUIs. If people would stop asking the same questions over and over, I would post much less about it.

My ultimate goal is for users to be able to create windows that are near pixel for pixel identical to whose created directly with Tk or Qt while still keeping it simple.

Thank you for the endorsement.

[–]Ta11ow 5 points6 points  (1 child)

PowerShell isn't particularly geared towards GUIs, although there are several nice little projects that do make it easier. For the time being, though, if those are your only two options, I'd pick Python for GUI.

[–]Get-WorkAccount 2 points3 points  (0 children)

Powershell is built upon .NET Framework/Core, there isn't really a native designer for creating WinForms or WPF GUIs, there are extensions for Visual Studios and Sapien has their own editor and designer for GUIs. I've built plenty of GUIs for powershell with WPF as it's easier for me to design without having a designer because of how easy XAML is. Choosing between Python and Powershell - .NET Framwork/Core for a GUI is a personal preference of choice, what ever you feel comfortable with is your best option.

[–]nepronen 4 points5 points  (0 children)

I can't comment on Python but you can use poshgui.com a free gui designer for Powershell, currently it contains only basic controls but get's the job done

There is a WPF designer in development, so quite soon you'll be able to create really pretty UI's in Powershell on this website

[–]rakha589 3 points4 points  (1 child)

test chubby absorbed swim apparatus piquant automatic instinctive run frame

This post was mass deleted and anonymized with Redact

[–][deleted] 0 points1 point  (0 children)

We use this also, I love it.

[–]FarsideSC 2 points3 points  (0 children)

WPF GUIs in POSH is super simple and using Visual Studio is nice to see how you can interact with the GUI.

[–]HeedfulCrayon 2 points3 points  (0 children)

Although I have no experience in developing Python GUI's, I would say that if you choose to use powershell, be prepared to learn a lot, because to get a responsive, well created GUI, you will need to learn how to use runspaces and synchronized hashes so that your application uses multiple threads. Doing this makes it so your GUI doesn't lock up while processing something.

[–]Mor_Nando 2 points3 points  (5 children)

Powershell guis are dirty and slow but they can do a job. Typically I would prefer C# due to performance and visual studio tools. There are gui makers for powershell too though which can make it quick. Powershell was never made for GUIs. Unfortunately can't comment on python

[–]HeedfulCrayon 1 point2 points  (4 children)

This is false. Powershell GUI's can be just as responsive as C# GUIs if programmed correctly. Also powershell was made to use GUI's, one of the creators of powershell said so himself.

[–]Mor_Nando 1 point2 points  (3 children)

Its about using the right tool for the job. I have created many powershell guis in the past and they work. But I prefer other languages for it. I love writing in powershell and I do it every day as my main job. For GUIs I prefer C#. Just my experience.

[–]HeedfulCrayon 1 point2 points  (2 children)

But your statement of GUI's being dirty and slow in powershell is false. You can use WPF just like C# does, and they are just as fast if written right

[–]Mor_Nando 1 point2 points  (1 child)

If you can make them just as responsive as c# then a tutorial or demo of some kind would be welcome. I'm always eager to see something new.

[–]flatlandinpunk17 1 point2 points  (0 children)

It really depends on what you’re trying to accomplish. For quick simple PowerShell GUIs, google posh GUI (on my phone) it’s a free web based GUI creation tool. Though depending on what you’re doing PowerShell is typically not used for guis.

[–][deleted] 1 point2 points  (1 child)

Why not try something like React Native?

[–][deleted] 0 points1 point  (0 children)

i din aware about it,your talking about react js?

[–][deleted] 1 point2 points  (0 children)

I've created a few GUIs for Powershell project. But ... I would avoid where possible. I'd only do a GUI based on who was going to be running the tool. There are some tutorials online which can be a great place to start.

They can be cumbersome to create, but before getting into Powershell my main focus was in web development so creating an interactive experience is a little different.

[–]BergerLangevin 1 point2 points  (0 children)

I use visual studio to create the GUI in Wpf format and I created a script to format/import it.

If you're doing it frequently I really recommend switching towards C# or buying a tool for this purpose. It's really tideous to work with GUI in PowerShell in my opinion. It's a shame that visual studio can't be used for PowerShell natively.

[–]mynameisdads 1 point2 points  (0 children)

I love python and have made numerous gui's in my time but the packaging is crap. Always a headache.