[Tutor] Need help please

2018-04-16 Thread Sandra Sherif via Tutor
Dear Python Tutor, I am in desperate need for help with programming on python. I am new to using python and I’m trying to write a program called “turtle tag”. I’m trying to do these things in the program: a. Asks how many turtles are playing tag b. Creates a turtle, assigns it a random color, a

Re: [Tutor] Need help please

2018-04-16 Thread Alan Gauld via Tutor
On 16/04/18 03:30, Sandra Sherif via Tutor wrote: > Dear Python Tutor, > > I am in desperate need for help with programming on python. I am new to using > python and I’m trying to write a program called “turtle tag”. I’m trying to > do these things in the program: > a. Asks how many turtles are

[Tutor] XML Programs

2018-04-16 Thread Glen
Hey guys, I'm writing a save-game editor for a game I play (just a project to learn). But I am struggling on how to structure the code, how to store the xml data in data structure etc, Can anyone recommend some source I can review that reads and writes data from an xml file. Thanks,

Re: [Tutor] XML Programs

2018-04-16 Thread leam hall
On Mon, Apr 16, 2018 at 7:10 AM, Glen wrote: > Hey guys, > > I'm writing a save-game editor for a game I play (just a project to learn). > But I am struggling on how to structure the code, how to store the xml data > in data structure etc, > > Can anyone recommend some source I can review that rea

Re: [Tutor] XML Programs

2018-04-16 Thread Glen
I understand, I'd love to use something else but the save game files are in XML so I have no choice :'( On 16 April 2018 at 13:54, leam hall wrote: > On Mon, Apr 16, 2018 at 7:10 AM, Glen wrote: > > Hey guys, > > > > I'm writing a save-game editor for a game I play (just a project to > learn).

Re: [Tutor] XML Programs

2018-04-16 Thread leam hall
Yeah, understood. Okay, knowing that others are smarter about python, and ElementTree, here's some code I was using to parse XML. Took a while to recover from. :) Leam # import xml.etree.ElementTree as ET import os import argparse import fnmatch def show_info(file, element): action

Re: [Tutor] XML Programs

2018-04-16 Thread George Fischhof
Hi, Maybe you should give a try to xmltodict package George leam hall ezt írta (időpont: 2018. ápr. 16., H 15:14): > Yeah, understood. > > Okay, knowing that others are smarter about python, and ElementTree, > here's some code I was using to parse XML. Took a while to recover > from. :) > > L

Re: [Tutor] tkinter code executes before function returned

2018-04-16 Thread Chris Roy-Smith
On 15/04/18 18:10, Alan Gauld via Tutor wrote: On 15/04/18 03:57, Chris Roy-Smith wrote: I am trying to get tkinter to return a number from a window, which then sets how many times to print a sign. I don;t jhave time to look at this in detail just now, maybe later. But first impressions is th