Python Forum
Newbie question about running Python via GUI on OSX
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie question about running Python via GUI on OSX
#1
Hello,

Hope I have posted this in the correct forum, apologies if it is wrong.

I am very new to Python I have decided to try and learn it as a hobby, I have access to MAC OSX and Raspberry Pi's and would prefer to start learning using the OSX GUI.

I have searched and decided to load Python 3 onto the OSX system using HomeBrew, now I have access to Python via the terminal interface, which to me seems a rather inefficient way to get things done on this platform, yes I appreciate that Terminal has its place and a role to play, but I would have thought for a beginner of a coding language the use of a GUI would provide more benefit to me.

Currently, the location of the Python files are not visible to the OSX system so i recognise i need to probably get more involved with Terminal to resolve that.... possibly...

I have searched a little on possible GUI that is Python-compatible on the OSX but my results appear to suggest I need to build a GUI interface?? and I was hoping to get a working solution

Suggestions will be very gratefully accepted.

Thanks

JohnW
Reply
#2
Quote:and I was hoping to get a working solution
working solutions are created by programming languages, python being one of them.
If python presented 'working solutions' it would be considered an application, not a programming language.

By OSX GUI, am I correct in assuming that you mean Aqua?

if so, the python community offer the following 'packages' (for subject aqua): https://pypi.org/search/?q=Aqua
All (or most) of these include the source code that created the packages. That is (usually) stored in a repository named GitHub, you can see the source code for each package, by clicking on the Homepage link on pypi.

If you like what you see in a package, you can (again usually, as some installs are a bit more complicated) install using the 'pip' sample pip install aqua for any other package just replace 'aqua' with the (pypi) package name.

If you'd like to study the source code for any package,
  1. First Install git (if not already installed):
  2. Now, from command line, navigate to the directory where you would like to place the source code
  3. On the package GitHub page (get there by clicking Homepage in PyPi) you will see a green 'Code' page.
    • Copy that link
    • from command line, type git clone
    • paste link to end of line above and press enter. All of the code will be copied to your directory
Reply
#3
Hello,

And thank you for your response.

Before I review your response I think I may have been asking the wrong question.

I am looking to use the standard OSX GUI to generate/edit python code and then run it directly from the OSX GUI, with the results being displayed via the OSX GUI.

I get the impression that my original thread is looking for advice on how to integrate access to a GUI within the code I hope to develop.

By the way please assume I know nothing about Python at this stage.

Thank You again

JohnW
Reply
#4
Hello,

OK, hold off on this thread I have now found Idle and successfully complete a couple of simple tests on my RaspberryPi

Now I need to move to ensure I can also do the same on the MAC.

Thanks Again

hopefully, this is sorted apologies for the basic question but this is very new to me...

Thanks

JohnW
Reply
#5
I would just like to advise on an IDE that will help you greatly on OSX, VSCode (not to be confused with Virtual Studio).

Idle is not a very good IDE (even though part of python distribution).
You would be doing yourself a favour to start off with a solid IDE.

see: https://code.visualstudio.com/docs/setup/mac

also see: https://python-forum.io/Thread-VS-Code-from-start

If at some point you need to move to a platform other than OSX, this will work on Linux and/or MS Windows as well.
Reply
#6
(Feb-02-2021, 02:22 AM)Larz60+ Wrote: I would just like to advise on an IDE that will help you greatly on OSX, VSCode (not to be confused with Virtual Studio).

Idle is not a very good IDE (even though part of python distribution).
You would be doing yourself a favour to start off with a solid IDE.

see: https://code.visualstudio.com/docs/setup/mac

also see: https://python-forum.io/Thread-VS-Code-from-start

If at some point you need to move to a platform other than OSX, this will work on Linux and/or MS Windows as well.


Hello,

Thank you very much for your helpful responses, I will certainly try your recommendation.

Apart from OSX I use Raspberry Pi to experiment with projects, and I also have a Linux virtual machine running on my OSX system, so I will certainly use these other platforms as part of my experiments to establish which I should use for this Python Learning project.

Thank You

JohnW
Reply
#7
I don't use Pi much, you might be stuck with Idle there, I am only guessing.
Reply
#8
(Feb-02-2021, 10:33 AM)Larz60+ Wrote: I don't use Pi much, you might be stuck with Idle there, I am only guessing.

Based on your help and advice I think I will now stick with my preferred option which is OSX

Thanks

JohnW
Reply
#9
OSX is an operating system, IDLE is an "IDE" just not a great one.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How is pandas modifying all rows in an assignment - python-newbie question markm74 1 654 Nov-28-2023, 10:36 PM
Last Post: deanhystad
  newbie question - can't make code work tronic72 2 626 Oct-22-2023, 09:08 PM
Last Post: tronic72
  Newbie question about switching between files - Python/Pycharm Busby222 3 543 Oct-15-2023, 03:16 PM
Last Post: deanhystad
  Newbie.... run for cover. OpenCV question Stevolution2023 2 922 Apr-12-2023, 12:57 PM
Last Post: Stevolution2023
  numpy newbie question bcwilly_ca 4 1,128 Feb-10-2023, 05:55 PM
Last Post: jefsummers
  Python newbie laleebee 2 1,286 May-24-2022, 01:39 PM
Last Post: laleebee
  Question from complete python's newbie Davicom 3 2,305 Jun-09-2021, 06:09 PM
Last Post: bowlofred
  super newbie question: escape character tsavoSG 3 2,403 Jan-13-2021, 04:31 AM
Last Post: tsavoSG
  newbie question....importing a created class ridgerunnersjw 5 2,571 Oct-01-2020, 07:59 PM
Last Post: ridgerunnersjw
  Dumb newbie question JonEdward 5 3,181 Jul-22-2020, 10:06 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020