[Tutor] Looking for some direction

2019-05-11 Thread Cranky Frankie
but I'd like to have a nice class diagram if possible. 5) I'm really having trouble envisioning the GUI screens. How does one get a handle on that? Just draw the screens on paper, or what? Any ideas very much appreciated. -- Frank L. "Cranky Frankie" Palmeri, Risible

Re: [Tutor] Running Python 3 on Linux Mint

2019-01-14 Thread Cranky Frankie
On Sun, Jan 13, 2019 at 2:04 PM Alan Gauld via Tutor wrote: > "You don't say which Mint version but assuming its 17 or > greater then you can just use the software manager > (or Synaptic) and install the python3 packages." > > Thanks so much, I'm all se

[Tutor] Running Python 3 on Linux Mint

2019-01-13 Thread Cranky Frankie
I want to start developing an application in Python 3 on my main computer which runs Linux Mint with Python 2.7. What is the best way to work with Python 3 on this system? -- Frank L. "Cranky Frankie" Palmeri, Risible Riding Raconteur & Writer "If you have a garden and

Re: [Tutor] graphics library for teaching Python

2018-12-21 Thread Cranky Frankie
thoughts would be appreciated. > > Mike > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > -- Frank L. "Cranky Frankie" Palmeri,

Re: [Tutor] Curious dictionary printing

2012-05-08 Thread Cranky Frankie
when I simply wanted to print one entry and it came out in what looked like a random order, this didn't occur to me. A normal "dictionary" is in fact ordered. Sorry for the disturbance. -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “The problem

[Tutor] Curious dictionary printing

2012-05-07 Thread Cranky Frankie
when I print it: print(Namath) I get: {'phone': '212-222-', 'first_name': 'Joe', 'last_name': 'Namath', 'email': 'joe.nam...@gmail.com', 'stadium': 'Shea Stadium'} Why is it out of

[Tutor] running an imported function

2012-04-27 Thread Cranky Frankie
a way I can import clr.py and then run clr()? -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “The problem with quotes on the Internet is that it is often difficult to verify their authenticity.” - Abraham Lincoln ___

Re: [Tutor] New to Python programing

2012-04-03 Thread Cranky Frankie
On Tue, Apr 3, 2012 at 10:09 AM, Christian Witts wrote: > Are you possibly thinking of the Khan Academy [1] ? > > [1] http://www.khanacademy.org/ Yes, that was it, thanks. -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “The problem with quotes

[Tutor] New to Python programing

2012-04-03 Thread Cranky Frankie
here are many Python specific vidoes there as well. Just something else to check out. -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “The problem with quotes on the Internet is that it is often difficult to verify thei

[Tutor] New to this list ....

2012-03-30 Thread Cranky Frankie
and winds up with some nice games: http://www.amazon.com/Python-Programming-Absolute-Beginner-Edition/dp/1435455002/ref=sr_1_6?ie=UTF8&qid=1333131438&sr=8-6 -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “The problem with quotes on the Internet i

[Tutor] roman to arabic

2012-02-27 Thread Cranky Frankie
ot; in COBOL. Still, every language offers almost unlimted indentation, so it's up to the programmer to not use it? Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “How you do anything is how you do everythin

[Tutor] specific recommendation for a Python book, to move

2012-02-15 Thread Cranky Frankie
The book I recommend is Python Programming, Third Edition, for the Absolute Beginner, by Michael Dawson. It's Python 3 based. You go from knowing nothing to writing video games. I think it's great. -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “Ho

[Tutor] possibly a version error

2011-12-22 Thread Cranky Frankie
ute('text') }) ycondition = dom.getElementsByTagNameNS(WEATHER_NS, 'condition')[0] return { 'current_condition': ycondition.getAttribute('text'), 'current_temp': ycondition.getAttribute('temp'), '

[Tutor] possibly a version error

2011-12-22 Thread Cranky Frankie
2011 at 5:33 PM, Cranky Frankie > wrote: >> On the bottom of this web page: >> >> http://developer.yahoo.com/python/python-xml.html >> >> is a program that reads an RSS feed for the weather and then parses >> the XML to show weather data by a zip code you i

[Tutor] possibly a version error

2011-12-22 Thread Cranky Frankie
7; object has no attribute 'urlopen' I'm wondering if this is because this is Python 2.x code? Can someone who has 2.x try to run this and let me know if that's the problem? Is there a way to get this to work in Python 3.2? -- Frank L. "Cranky Frankie" Palme

[Tutor] pygame blinking text

2011-12-15 Thread Cranky Frankie
y = games.screen.height/2, n_repeats = 0, repeat_interval = 50) games.screen.add(screen_refresh) games.screen.mainloop() -- Frank L. "Cranky Frankie" Palmeri ___ Tutor maillist

[Tutor] pygame blinking text

2011-12-12 Thread Cranky Frankie
ssage and readd it, over and over in a loop with a delay, bu: games.screen.delete(ty_message) doesn't work - delete is not a valid method. Is there any way to get blinking text with pygame? This is not a deal breaker, but I thought the blinking tex

[Tutor] best book for OOP

2011-12-11 Thread Cranky Frankie
sense (simple video games). I really found this book helpful. I just finished reading it for the second time! -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “How you do anything is how you do everything.” - from Alabam

[Tutor] What style do you call Python programming?

2011-12-09 Thread Cranky Frankie
From: Dave Angel <> Probably because I work in a shop that still heavily uses older languages like COBOL and CULPRIT where you still deal with labels, branching, goto, etc. The fact that it is possible to code "structured" that way AND the Python way amazes me. -- Frank L.

[Tutor] What style do you call Python programming?

2011-12-09 Thread Cranky Frankie
even with line numbers, etc. I'd also be interested in reading the Python history file. -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “How you do anything is how you do everything.” - from Alabama Crimson Tide training room

[Tutor] What style do you call Python programming?

2011-12-09 Thread Cranky Frankie
to be with Python the whole thing is creating functions and then using loops, with an occasional BREAK or CONTINUE, to control program flow. I know it's Structured, but it's not like COBOL structured, if you know what I mean. I hope this is clear enough. -- Frank L. &quo

[Tutor] tkinter message & button questions

2011-11-30 Thread Cranky Frankie
y like to know about it. Thanks again Peter, Wayne, and everyone else on the tutor list, you guys are great. -- Frank L. "Cranky Frankie" Palmeri ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] tkinter message & button questions

2011-11-29 Thread Cranky Frankie
find that a lot of the information on the message widget does not work in Python 3.1 - for example, the height parameter does not work in 3.1. -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “How you do anything is how you do everything.” - from Alabama Crimson

[Tutor] problem with msg widget & button

2011-11-29 Thread Cranky Frankie
7;s a grid manager as well. I'll have to try that. All I want is the msg_widget to display the same size each time, no matter what size string is in it. Thanks Peter! -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “H

[Tutor] problem with msg widget & button

2011-11-29 Thread Cranky Frankie
when I do that, it puts out *another* msg-widget! That is not what I want at all. I just want the next quote button to put the next quote in the box. -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “How you do anything is how you do everything.” - from Alaba

[Tutor] tkinter message & button questions

2011-11-28 Thread Cranky Frankie
bove to display as a box capable of storing, say, 1,000 characters, even if I only give it 100, so the program looks the same every time it's invoked. Is there a way to make a default sized message widget? -- Frank L. "Cranky Frankie" Palmeri ___

[Tutor] sensing EOF in Python 3.1

2011-11-25 Thread Cranky Frankie
time. <> You are of course, correct, thanks. I'll be fixing that. Steven thanks for your comments about comments, I'll be doing them over for sure. -- Frank L. "Cranky Frankie" Palmeri ___ Tutor maillist - Tutor@pyth

[Tutor] sensing EOF in Python 3.1

2011-11-23 Thread Cranky Frankie
e.close() # # pickle_in.py # program to read in a pickled file # # Frank L. Palmeri # import pickle # import the pickle module pickle_file = open("d:/Work/pickle_file", "rb") # open the pickled file read_list = pickle.load(pickle_file)# read the first pickled row print(read_list)# print the input row from the pickled file pickle_file.close() # close the pickled file -- Frank L. "Cranky Frankie" Palmeri ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] sensing EOF in Python 3.1

2011-11-23 Thread Cranky Frankie
hon\pickle_in.py", line 21, in read_file = pickle.load(pickle_file)# read the next record in the input file File "D:\Python31\lib\pickle.py", line 1365, in load encoding=encoding, errors=errors).load() EOFError -- Frank L. "Cranky Frankie"

[Tutor] Python 3 dictionary questions

2011-11-23 Thread Cranky Frankie
ann...@gmail.com", "Louisiana Superdome"], "Staubach": ["Roger","214-765-8989", "roger.staub...@gmail.com", "Cowboy Stadium"]} print(Qb_Dict["Elway"],"\n") # print a dictionary

[Tutor] basic class loading question

2011-11-22 Thread Cranky Frankie
ce of class Qb called "nq" #and populate each field quarterbacks.append(nq) # Append an instance of object "nq" into object list "quarterbacks" i = i + 1 # Iterate for each row in "Qb_

Re: [Tutor] basic class loading question

2011-11-22 Thread Cranky Frankie
quarterbacks[2].last_name) TypeError: 'Qb' object does not support indexing -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “How you do anything is how you do everything.” - from Alabama Crimson Tide training room __

Re: [Tutor] basic class loading question

2011-11-22 Thread Cranky Frankie
uot;], ["Archie", "Manning", "504-888-1234", "archie.mann...@gmail.com", "Louisiana Superdome"], ["Roger", "Staubach", "214-765-8989", "roger.staub...@gmail.com", "Cowboy Stadium"]] len_Qb_list

[Tutor] basic class loading question

2011-11-22 Thread Cranky Frankie
ai.com", "Mile High Stadium"], ["Archie", "Manning", "504-888-1234", "archie.mann...@gmail.com", "Louisiana Superdome"], ["Roger", "Staubach", "214-765-8989", "roger.staub...@gmail.com&quo

[Tutor] command=F.quit not closing the sample TK program in Vista

2011-11-19 Thread Cranky Frankie
w I'm really confused:) -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “How you do anything is how you do everything.” - from Alabama Crimson Tide training room ___ Tutor maillist - Tutor@python.org

[Tutor] command=F.quit not closing the sample TK program in Vista

2011-11-19 Thread Cranky Frankie
roblem with the sample programs? Python just hangs, and Vista says it's not responding. -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “How you do anything is how you do everything.” - from Alabama Crimson Tide training room

[Tutor] Thank you!

2011-11-16 Thread Cranky Frankie
e program - it can work in any programming style (O-O, sturctured, etc.) I'm going to be doing a presentation on Python programming for database administrators. This script will help a lot to explain some of the basic concepts. Thanks again very much for your help. Python rocks! -- Frank L. &quo

[Tutor] interesting behaviour with postional output

2011-11-14 Thread Cranky Frankie
41st postion - but you have to use a non-proportional font to see it. I was hoping to not have the font be an issue. Very interesting. -- Frank L. "Cranky Frankie" Palmeri, Guilderland, NY, USA              Risible Riding Raconteur & Writer Don

[Tutor] positional output

2011-11-11 Thread Cranky Frankie
e the way to go. If there's an easyier way to do it I'm all ears. I don't have my script available at the moment but I could send it if it would be helpful. -- Frank L. "Cranky Frankie" Palmeri, Guilderland, NY, USA              Risible Riding Raconteur

[Tutor] positional output

2011-11-10 Thread Cranky Frankie
An example would be greatly appreciated. -- Frank L. "Cranky Frankie" Palmeri, Guilderland, NY, USA              Risible Riding Raconteur & Writer Don't sweat the petty things, and don't pet the sweaty things. ___ Tutor maillist -

[Tutor] string split function - how to tell how many splits

2011-11-08 Thread Cranky Frankie
t know what the number of splits will be. How can I find out before trying to access an out of range index? -- Frank L. "Cranky Frankie" Palmeri, Guilderland, NY, USA              Risible Riding Raconteur & Writer Don't sweat the p

[Tutor] Quote of the Day version 1.0

2011-08-31 Thread Cranky Frankie
ot;I have made a ceaseless effort not to ridicule, not to bewail, not to scorn human actions, but to understand them.", "In the depth of winter I finally learned there was in me an invincible summer.", "Who has a harder fight than he who is striving to overcome himself.&

[Tutor] fortune-like utility

2011-08-30 Thread Cranky Frankie
; > I would suggest starting with the data/format. snip Thanks Martin for the excellent suggestions. I read in the book that you have to use escape like /n when you want to span lines. I don't want to have to do that to each of my quotes, many of which span several lines, so I will look in

Re: [Tutor] Tutor Digest, Vol 90, Issue 98

2011-08-29 Thread Cranky Frankie
rted with Python. -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer " . . . and the extended forecast, until you come back to me, baby, is high tonight, low tomorrow, and precipitation is expected." - Tom Waits, "Emotional Weather Report" ___

Re: [Tutor] Intro

2011-08-29 Thread Cranky Frankie
> swift...@swiftone.org > -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer " . . . and the extended forecast, until you come back to me, baby, is high tonight, low tomorrow, and precipitation is expected." - Tom Waits, "Emotional Weather Repor

Re: [Tutor] Tutor Digest, Vol 90, Issue 97

2011-08-29 Thread Cranky Frankie
that.>> I'm sorry you were offended by my posts. If others were as well let me know and I'll unsubscribe immediately. -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer " . . . and the extended forecast, until you come back to me, baby

[Tutor] Intro

2011-08-29 Thread Cranky Frankie
tes a space invaders type game using some game modules - and this in a beginner book! Amazing. This is a great book about a great language. -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer " . . . and the extended