Richmond

I am no Python expert having only got over Pythonaphobia, which I contracted 
last century, in the last few months.

The standard Python library, which is included in the distribution, includes 
the TKinter GUI library. When Python starts up, it doesn’t load many of the 
standard libraries automatically. That’s why you need the imports before you 
use them. (It imports them from the standard library).

Here is the smallest hello Richmond program that I could find:

        import tkinter as tk

        gui = tk.Tk()
        w = tk.Label(gui, text="Hello, Richmond!")
        w.pack()
        w.mainloop()
        
 
It should run in any standard Python3 distribution.

You might want to think about using the new Mu Editor which is aimed at 
beginners. It includes it’s own version of Python3 (3.6 in the current 
release). It’s website is https://codewith.mu <https://codewith.mu/> There’s an 
introduction to it at https://www.raspberrypi.org/blog/mu-python-ide/ 
<https://www.raspberrypi.org/blog/mu-python-ide/>

Hope this helps

Peter

> On 13 Aug 2018, at 16:23, Richmond Mathewson via use-livecode 
> <[email protected] <mailto:[email protected]>> wrote:
> 
> Like it or not (and mainly NOT), I have to offer Python to kids this fall . . 
> .
> 
> This is a b*gger for several reasons:
> 
> 1. I love LiveCode.
> 
> 2. To use Python to any effect apart from rather goofy manipulations with 
> numbers and text an install
> requires 'modules' which are usually installed using a daft command-line 
> system using something call
> 'PIP' [ "Permanently Injurious Python" perhaps? ] . . . which I have signally 
> failed to get to work on either
> Macintosh or Linux.
> 
> I wonder of anyone knows of a way to install Python 3 on Linux with the main 
> GUI modules "bound in":
> i.e. a one-stop install.
> 
> Frankly, Python, by using this module system seems to defeat itself to a 
> certain extent: or, maybe I'm just
> spoilt by LiveCode.
> 
> This question is very timely as Wednesday is Nag Panchami: the day of snakes!
> 
> Richmond.
> _______________________________________________
> use-livecode mailing list
> [email protected] <mailto:[email protected]>
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to