Jump to content

So, I like making little python scripts, nothing too fancy or complex. however, I'd like to make programs that have a GUI. problem is, I have no idea how. I've seen that there's a lot of options, but I'd like to hear from some people here if you have a few reccomendations/ways to make a simple graphic interface for Python.

 ______     ______     ______     ______     __  __     __   __     ______     __   __     ______     ______  
/\  __ \   /\  == \   /\  __ \   /\  ___\   /\ \_\ \   /\ "-.\ \   /\  ___\   /\ "-.\ \   /\  ___\   /\__  _\ 
\ \  __ \  \ \  __<   \ \  __ \  \ \ \____  \ \  __ \  \ \ \-.  \  \ \  __\   \ \ \-.  \  \ \  __\   \/_/\ \/ 
 \ \_\ \_\  \ \_\ \_\  \ \_\ \_\  \ \_____\  \ \_\ \_\  \ \_\\"\_\  \ \_____\  \ \_\\"\_\  \ \_____\    \ \_\ 
  \/_/\/_/   \/_/ /_/   \/_/\/_/   \/_____/   \/_/\/_/   \/_/ \/_/   \/_____/   \/_/ \/_/   \/_____/     \/_/ 
Link to comment
https://linustechtips.com/topic/748727-gui-with-python-how/
Share on other sites

Link to post
Share on other sites

maybe try tkinter.

 

I would consider moving to c# it's a lot easy to create guis, it's drag and drop. 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/748727-gui-with-python-how/#findComment-9480233
Share on other sites

Link to post
Share on other sites

Just now, vorticalbox said:

maybe try tkinter.

 

I would consider moving to c# it's a lot easy to create guis, it's drag and drop. 

Lol, C# is something totally different.

 

Tkinter is pretty easy to use but looks shitty if I remember it correctly. wxPython looks better, I'd probably go for that one, I think it's a little bit more advanced.

Link to comment
https://linustechtips.com/topic/748727-gui-with-python-how/#findComment-9480241
Share on other sites

Link to post
Share on other sites

2 minutes ago, Organized said:

Lol, C# is something totally different.

 

Tkinter is pretty easy to use but looks shitty if I remember it correctly. wxPython looks better, I'd probably go for that one, I think it's a little bit more advanced.

oh I know c# is a totally different ball game but for creating a GUI is very simple and looks good too. 

 

I've never cheated a gui in python never needed too, isn't blender wrote in python that guy is very nice. 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/748727-gui-with-python-how/#findComment-9480251
Share on other sites

Link to post
Share on other sites

Thanks for the help! I'll have a look at your suggestions. ^^

 ______     ______     ______     ______     __  __     __   __     ______     __   __     ______     ______  
/\  __ \   /\  == \   /\  __ \   /\  ___\   /\ \_\ \   /\ "-.\ \   /\  ___\   /\ "-.\ \   /\  ___\   /\__  _\ 
\ \  __ \  \ \  __<   \ \  __ \  \ \ \____  \ \  __ \  \ \ \-.  \  \ \  __\   \ \ \-.  \  \ \  __\   \/_/\ \/ 
 \ \_\ \_\  \ \_\ \_\  \ \_\ \_\  \ \_____\  \ \_\ \_\  \ \_\\"\_\  \ \_____\  \ \_\\"\_\  \ \_____\    \ \_\ 
  \/_/\/_/   \/_/ /_/   \/_/\/_/   \/_____/   \/_/\/_/   \/_/ \/_/   \/_____/   \/_/ \/_/   \/_____/     \/_/ 
Link to comment
https://linustechtips.com/topic/748727-gui-with-python-how/#findComment-9480436
Share on other sites

Link to post
Share on other sites

7 hours ago, vorticalbox said:

I would consider moving to c# it's a lot easy to create guis, it's drag and drop. 

I can recommend Delphi or Lazarus for that.

If you really insist on using Python for GUIs, Tkinter might be your best bet indeed.

Edited by wkdpaul
cleaned up

Write in C.

Link to comment
https://linustechtips.com/topic/748727-gui-with-python-how/#findComment-9480562
Share on other sites

Link to post
Share on other sites

5 hours ago, vorticalbox said:

maybe try tkinter.

 

I would consider moving to c# it's a lot easy to create guis, it's drag and drop. 

sometimes convenience isn't a good reason for learning an new language. 

 

However Tkinter is a good place to start for GUI development. It even comes packaged with Python these days

My procrastination is the bane of my existence.

I make games and stuff in my spare time.

 

 

Link to comment
https://linustechtips.com/topic/748727-gui-with-python-how/#findComment-9481199
Share on other sites

Link to post
Share on other sites

sorry guys, but can we stop arguing please? I program with python because that's the first one I've ever tried and I simply enjoy programming with it. sure C is also very good and I've used it for arduino's and I personally didn't like it as much as python. I program just for fun and I was looking for a GUI to make my scripts a bit more user friendly, for fun. there might be more optimal ways, but I just like it this way and others might like something else. everyone has their own preferences, right?

 ______     ______     ______     ______     __  __     __   __     ______     __   __     ______     ______  
/\  __ \   /\  == \   /\  __ \   /\  ___\   /\ \_\ \   /\ "-.\ \   /\  ___\   /\ "-.\ \   /\  ___\   /\__  _\ 
\ \  __ \  \ \  __<   \ \  __ \  \ \ \____  \ \  __ \  \ \ \-.  \  \ \  __\   \ \ \-.  \  \ \  __\   \/_/\ \/ 
 \ \_\ \_\  \ \_\ \_\  \ \_\ \_\  \ \_____\  \ \_\ \_\  \ \_\\"\_\  \ \_____\  \ \_\\"\_\  \ \_____\    \ \_\ 
  \/_/\/_/   \/_/ /_/   \/_/\/_/   \/_____/   \/_/\/_/   \/_/ \/_/   \/_____/   \/_/ \/_/   \/_____/     \/_/ 
Link to comment
https://linustechtips.com/topic/748727-gui-with-python-how/#findComment-9481630
Share on other sites

Link to post
Share on other sites

 

1 hour ago, ArachneNet said:

sorry guys, but can we stop arguing please? I program with python because that's the first one I've ever tried and I simply enjoy programming with it. sure C is also very good and I've used it for arduino's and I personally didn't like it as much as python. I program just for fun and I was looking for a GUI to make my scripts a bit more user friendly, for fun. there might be more optimal ways, but I just like it this way and others might like something else. everyone has their own preferences, right?

Genuinely sorry about that. Didn't mean to derail. 

to answer your actual question, python is a totally valid language to use, and I use it for automation all the time. TKinter is a great way to get basic GUI functionality in python as well, as it's built in and there are lots of resources available online. As other have said, C# would be a good next step if you want to make better looking GUIs easily, but tkinter and python will take you as far as you need to go if you're only doing scripting style stuff. 

Gaming build:

CPU: i7-7700k (5.0ghz, 1.312v)

GPU(s): Asus Strix 1080ti OC (~2063mhz)

Memory: 32GB (4x8) DDR4 G.Skill TridentZ RGB 3000mhz

Motherboard: Asus Prime z270-AR

PSU: Seasonic Prime Titanium 850W

Cooler: Custom water loop (420mm rad + 360mm rad)

Case: Be quiet! Dark base pro 900 (silver)
Primary storage: Samsung 960 evo m.2 SSD (500gb)

Secondary storage: Samsung 850 evo SSD (250gb)

 

Server build:

OS: Ubuntu server 16.04 LTS (though will probably upgrade to 17.04 for better ryzen support)

CPU: Ryzen R7 1700x

Memory: Ballistix Sport LT 16GB

Motherboard: Asrock B350 m4 pro

PSU: Corsair CX550M

Cooler: Cooler master hyper 212 evo

Storage: 2TB WD Red x1, 128gb OCZ SSD for OS

Case: HAF 932 adv

 

Link to comment
https://linustechtips.com/topic/748727-gui-with-python-how/#findComment-9482032
Share on other sites

Link to post
Share on other sites

2 minutes ago, reniat said:

 

Genuinely sorry about that. Didn't mean to derail. 

to answer your actual question, python is a totally valid language to use, and I use it for automation all the time. TKinter is a great way to get basic GUI functionality in python as well, as it's built in and there are resource available online. As other have said, C# would be a good next step if you want to get more "professional" looking GUIs easily, but tkinter and python will take you as far as you need to go if you're only doing scripting style stuff. 

That's oke ^^ Thanks for your help man!

 ______     ______     ______     ______     __  __     __   __     ______     __   __     ______     ______  
/\  __ \   /\  == \   /\  __ \   /\  ___\   /\ \_\ \   /\ "-.\ \   /\  ___\   /\ "-.\ \   /\  ___\   /\__  _\ 
\ \  __ \  \ \  __<   \ \  __ \  \ \ \____  \ \  __ \  \ \ \-.  \  \ \  __\   \ \ \-.  \  \ \  __\   \/_/\ \/ 
 \ \_\ \_\  \ \_\ \_\  \ \_\ \_\  \ \_____\  \ \_\ \_\  \ \_\\"\_\  \ \_____\  \ \_\\"\_\  \ \_____\    \ \_\ 
  \/_/\/_/   \/_/ /_/   \/_/\/_/   \/_____/   \/_/\/_/   \/_/ \/_/   \/_____/   \/_/ \/_/   \/_____/     \/_/ 
Link to comment
https://linustechtips.com/topic/748727-gui-with-python-how/#findComment-9482046
Share on other sites

Link to post
Share on other sites

2 hours ago, ArachneNet said:

sorry guys, but can we stop arguing please? I program with python because that's the first one I've ever tried and I simply enjoy programming with it. sure C is also very good and I've used it for arduino's and I personally didn't like it as much as python. I program just for fun and I was looking for a GUI to make my scripts a bit more user friendly, for fun. there might be more optimal ways, but I just like it this way and others might like something else. everyone has their own preferences, right?

Tk and QT are your only good options. I have used Tk in the past, its good for simple things, but animations are terrible and the canvas is garbage.

Link to comment
https://linustechtips.com/topic/748727-gui-with-python-how/#findComment-9482460
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×