Re: [Tutor] tkinter events:

2006-08-28 Thread Mike Hansen
Yep...across multiple lines. Here's a tinyurl of it http://tinyurl.com/n93au Mike > -Original Message- > From: Zsiros Levente [mailto:[EMAIL PROTECTED] > Sent: Friday, August 25, 2006 11:37 PM > To: Mike Hansen > Cc: python tutor > Subject: Re: [Tutor] tkinter

Re: [Tutor] making independent program?

2006-08-28 Thread Mike Hansen
http://pyfaq.infogami.com/tutor-how-do-i-make-an-executable-out-of-my-py thon-program or http://tinyurl.com/gtrpa if the url is too long. Mike ** IMPORTANT: The conten

Re: [Tutor] omnicomplete vim python

2006-08-29 Thread Mike Hansen
still just ctrl-n instead of using the new omnicomplete stuff. I like the background syntax checking in Komodo. It has been helping me clean up problems before I get around to running Pyflakes on the program. BTW, the next version of Komodo will have vi key-bindings! Mike ***

[Tutor] Q

2006-09-05 Thread mike park
my Q is how do you learn the languge of python ? and how do you program? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Hi All

2006-09-05 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Amit Rane > Sent: Saturday, September 02, 2006 4:52 AM > To: tutor@python.org > Subject: [Tutor] Hi All > > Hi , > This is Amit from India ... > i have just started working on Python ... >

Re: [Tutor] Python CGI Script

2006-09-20 Thread Mike Hansen
_ > I just wanted to verify what I believe to be correct way of doing this. sql_statement = "INSERT INTO images (image) VALUES (%s)" cur.execute(sql_statement, (data_obj, )) Is it just moving the variable

Re: [Tutor] Python CGI Script

2006-09-21 Thread Mike Hansen
> -Original Message- > From: Alan Gauld [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 21, 2006 2:51 AM > To: Mike Hansen; tutor@python.org > Subject: Re: [Tutor] Python CGI Script > > >sql_statement = "INSERT I

Re: [Tutor] module file copy ?

2006-09-21 Thread Mike Hansen
I had the same problem when I started using Python. It's the shutil module. shutil.copyfile(src, dst) Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] error message

2006-10-01 Thread mike viceano
hello i wrote a litle program ware you pick a number and the computer guesses it and i recently decided to make it so it dosint reguess numbers but now i get a error message here is the program def number(number): from random import randrange guess=randrange(number*2) print guess gues

Re: [Tutor] [Fwd: Re: database web app, what tool?]

2006-10-03 Thread Mike Hansen
system like cheetah. If you want to do it "the hard way", you can do it from your python program with print statements.(print "...") I think there's a module out there that can generate HTML for you. I'm not sure how far you've gone with doing

Re: [Tutor] What is a Python "project"?

2006-10-03 Thread Mike Hansen
ommon functions into modules that you can hopefully reuse for other programs. http://docs.python.org/tut/node8.html I've been doing some web programming, so my "projects" consist of cheetah template files, CSS, config files, a handful of python modules... I hope that helps. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] What is a Python "project"?

2006-10-03 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dick Moores > Sent: Tuesday, October 03, 2006 12:41 PM > To: tutor@python.org > Subject: Re: [Tutor] What is a Python "project"? > > At 10:

[Tutor] number game

2006-10-03 Thread mike viceano
i wrote a program that guesses number in the most effective way i could think of but i keep running into endless loops any help fixing it would be great :) here it is: def num(number): r=input("range >") ran=range(r+1) guess=r/2 print guess guesses=1 while guess!=number

Re: [Tutor] module loading

2006-10-05 Thread Mike Hansen
> 509-432-6869 > https://www.wsu.edu/~halamillo/ > > You might try asking this on the python mac mail list. They are extremely helpful. http://www.python.org/community/sigs/current/pythonmac-sig/ Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] VIM & Python

2006-10-11 Thread Mike Hansen
This is slightly off topic... I use VIM to write my Python programs. I usually have a shell open to run pyflakes on the file I just edited. Is there a way to run pyflakes from within VIM and have it display the errors in another buffer? The :make stuff is confusing me. Mike

Re: [Tutor] VIM & Python

2006-10-11 Thread Mike Hansen
> -Original Message- > From: Carlos Hanson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 11, 2006 10:50 AM > To: Mike Hansen > Cc: tutor@python.org > Subject: Re: [Tutor] VIM & Python > > > On Tue, October 10, 2006 1:44 pm, Mike Hansen wrote:

Re: [Tutor] VIM & Python

2006-10-11 Thread Mike Hansen
r, although it does not perform as many checks. Unlike PyLint, Pyflakes checks only for logical errors in programs; it does not perform any checks on style." - From the pyflakes web site. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Creating folders in windows...

2006-10-11 Thread Mike Hansen
#x27;sep', 'split', 'splitdrive', 'splitext', 'splitunc', 'stat', 'supports_unicode_filenames', 'sys', 'walk'] Anyways... could someone please point me in the right direction? I can use os.system('md test'), but that isn't cross platform... Hopefully nothing is wrong with my python installation. Thanks! You might try os.mkdir instead of os.path.mkdir Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Exception and sys.exit() in a cgi script

2006-10-16 Thread Mike Hansen
or@python.org > http://mail.python.org/mailman/listinfo/tutor > I'm catching up on the weekend's tutor messages. import cgitb; cgitb.enable() That spits errors to the web page which is great for debugging cgi scripts. I think you need print "Con

Re: [Tutor] Equivalent to perl -e

2006-10-16 Thread Mike Hansen
script I > called (pydashc.py) which just uses compile() to get the same > effect... very useful for when i don't want to *run* something to see > if i made any typos. > > regards, > -- wesley I had this same issue when I moved from Perl to Python. You might take a look

Re: [Tutor] python equivalent of perl readlink()?

2006-10-16 Thread Mike Hansen
-i''). > > Bill >From what I understand, Python 3000 is going to break backwards compatibility. However, I think I read that someone is writing a utility that will translate your pre-Python 3000 code to Python 3000 code. Mike ___ Tutor mai

Re: [Tutor] Generic Application Frameworks?

2006-10-19 Thread Mike Hansen
tp://cheeseshop.python.org/pypi/PlugBoard/0.2 Most of the other hits were for web application frameworks. Do you feel you need an application framework? I don't believe there's any limitation in python. I suspect it's mostly philosophical. Mike ___

Re: [Tutor] Generic Application Frameworks?

2006-10-19 Thread Mike Hansen
[...] I don't believe there's any limitation in python. I suspect it's mostly philosophical. <-- What did you mean by this Mike? import this "Simple is better than complex." "Complex is better than complic

[Tutor] Mapping to object attributes

2006-10-31 Thread Mike Hansen
27;ll need to validate(boolean or int), but the majority are just text fields that can be passed to the object. Anyone got any ideas on how to do this? Thanks, Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Mapping to object attributes

2006-11-01 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gauld > Sent: Tuesday, October 31, 2006 4:47 PM > To: tutor@python.org > Subject: Re: [Tutor] Mapping to object attributes > > > "Mike Hansen" <[EMAIL

Re: [Tutor] First realscript + Game of Life

2006-11-10 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Luke Paireepinart > Sent: Friday, November 10, 2006 12:08 AM > To: Carlos > Cc: tutor@python.org > Subject: Re: [Tutor] First realscript + Game of Life > > > > > Since there has been some talk about

Re: [Tutor] SAX, DOM, XSLT api

2006-11-10 Thread Mike Hansen
Python. I believe you can download Element Tree for older vesions of Python. http://docs.python.org/lib/markup.html Here's an article on XSLT tools for Python... http://uche.ogbuji.net/tech/akara/nodes/2003-01-01/python-xslt Mike - NOTICE: This e-mail transmission and any documents

Re: [Tutor] winsound mac

2006-11-10 Thread Mike Hansen
might try the Python Mac Sig. http://www.python.org/community/sigs/current/pythonmac-sig/ Mike - NOTICE: This e-mail transmission and any documents or files attached to it contain information for the sole use of the above-identified individual or entity. Its contents may be

Re: [Tutor] question about __init__ in a class

2006-11-13 Thread Mike Hansen
arguments. def __init__(self, id = None, monitor = None): Calling it new_monitor = sensor.Sensor(monitor = 'XJ191') new_monitor = sensor.Sensor(id = '3433') Check to make sure one or the other arguments is supplied. Otherwise throw an exception. Maybe there'll be some be

Re: [Tutor] free IDE for Python?

2006-11-13 Thread Mike Hansen
editor-ide -for-python/ Or tinyurl ..http://tinyurl.com/yxjxgc I use VIM. I've been experimenting with Eclipse and Pydev. You'll get almost as many answers as there are people on this list. Mike - NOTICE: This e-mail transmission and any documents or files attached

Re: [Tutor] free IDE for Python?

2006-11-16 Thread Mike Hansen
e going with Eclipse and Pydev. http://www.fabioz.com/pydev/manual_101_root.html I still find myself using VIM more than Eclipse. I'll need to play with Eclipse some more to make a decision if I want to stick with it or just stay with VIM. Mike - NOTICE: This e-mail

Re: [Tutor] how to extract time from datetime.date.time()

2006-11-16 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Asrarahmed Kadri > Sent: Thursday, November 16, 2006 10:29 AM > To: tutor-python > Subject: [Tutor] how to extract time from datetime.date.time() > > Hi, > > I want to extract hh:mm:ss from below

Re: [Tutor] free IDE for Python?

2006-11-16 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of William > O'Higgins Witteman > Sent: Thursday, November 16, 2006 12:08 PM > To: tutor@python.org > Subject: Re: [Tutor] free IDE for Python? > > On Thu, Nov 16

Re: [Tutor] OT: Vim was: free IDE for Python?

2006-11-17 Thread Mike Hansen
ve mapped a key to run pyflakes and display the results in a different buffer :new | r!pyflakes # Mike - NOTICE: This e-mail transmission and any documents or files attached to it contain information for the sole use of the above-identified individual or entity. Its co

Re: [Tutor] Why is startfile unavailable on my mac?

2006-12-04 Thread Mike Hansen
fari window? > > > Thank you. > > *** > Nathan Cain I just read the docs. I'm assuming that "Availability: Windows" means that it's Windows only. Mike - NOTICE: This e-mail transmission and any docume

Re: [Tutor] Integer?

2006-12-06 Thread Mike Hansen
Kent, Can you explain further? Refactoring is in my queue of books to read. In a web app I'm writing, I'm checking the input kind of like this... try: form_value = int(form.getvalue('num_widgets') except ValueError: display_error("Number of Widgets must

Re: [Tutor] List to dictionary question

2006-12-06 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Morpheus > Sent: Wednesday, December 06, 2006 9:00 AM > To: tutor@python.org > Subject: [Tutor] List to dictionary question > > I'm new to programming, and trying to learn the Python language. > T

Re: [Tutor] ***SPAM*** List to dictionary

2006-12-07 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Luke Paireepinart > Sent: Wednesday, December 06, 2006 10:54 PM > To: tutor@python.org > Subject: Re: [Tutor] ***SPAM*** List to dictionary > > Also, why is there now a **SPAM* in the subjec

Re: [Tutor] Python cgi scripting

2006-12-27 Thread Mike Hansen
.devshed.com/c/a/Python/Writing-CGI-Programs-in-Python/ Mike - NOTICE: This e-mail transmission and any documents or files attached to it contain information for the sole use of the above-identified individual or entity. Its contents may be privileged, confidential, and

Re: [Tutor] SPE - Stani's Python Editor ?

2007-01-03 Thread Mike Hansen
ting a lot of attention. There are people working on TextMate-like editors for Windows and Linux. Mike - NOTICE: This e-mail transmission and any documents or files attached to it contain information for the sole use of the above-identified individual or entity. Its cont

Re: [Tutor] python web dev

2007-01-04 Thread Mike Hansen
d then use it as a module to populate it. I want to check out Django next. Mike - NOTICE: This e-mail transmission and any documents or files attached to it contain information for the sole use of the above-identified individual or entity. Its contents may be privileged, co

Re: [Tutor] SPE - Stani's Python Editor ?

2007-01-04 Thread Mike Hansen
> -Original Message- > From: OkaMthembo [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 04, 2007 9:18 AM > To: Mike Hansen > Subject: Re: [Tutor] SPE - Stani's Python Editor ? > > have you tried Komodo from ActiveState or Wingware? might be > great

[Tutor] Python gui for file input

2007-01-05 Thread Mike Ellis
Hi all, I am looking to create a simple gui interface to a small script. The script requires the user to input a directory. I would like to allow the user to browse the windows file system for the desired directory rather than type in the full path by hand. This would operate in much the sam

Re: [Tutor] need help with sending email

2007-01-05 Thread Mike Hansen
rybook/smtplib.htm Also, the docs on smtplib: http://docs.python.org/lib/module-smtplib.html Mike - NOTICE: This e-mail transmission and any documents or files attached to it contain information for the sole use of the above-identified individual or entity. Its contents

Re: [Tutor] Creating folders

2007-01-10 Thread Mike Hansen
How can I create a folder with > Python? Trying to make a program which will allow me to save > my notes (txt files) quickly and cleanly. Having to create > folder manually would really make it a bit obsolete. > > Thanks in advance! > > http://docs.python.org/lib/os-fil

Re: [Tutor] python query

2007-01-16 Thread Mike Hansen
> > Any other practical advice you may deem feasible would be welcome. > > > > Thanking you in advance. > > > > Alexander Kapshuk. Here's some good books to read. http://www.python.org/infogami-faq/tutor/tutor-what-are-some-good-books- on-python/ Feel free t

Re: [Tutor] Perfect Python web stack?

2007-01-17 Thread Mike Hansen
, but don't quote me. Postgre + Apache + Cheetah + Dojo is working for me. Sometime soon, I want to experiment with Django. I'm not familiar with Lighttpd, FastCGI, mod_python, Pylons, or Kid. When I was looking for a JavaScript toolkit, I took a look at Mochikit and Dojo.

Re: [Tutor] Best IDE for Python

2007-01-25 Thread Mike Hansen
bilities. Komodo Edit is free and Komodo IDE cost some $$. Mike - NOTICE: This e-mail transmission and any documents or files attached to it contain information for the sole use of the above-identified individual or entity. Its contents may be privileged, confidential, and exem

Re: [Tutor] Best IDE for Python

2007-01-25 Thread Mike Hansen
the > ultimate would be an editor/IDE that can accommodate all with similar > functionality and behavior for all. > > MTCW > tim I agree. Depending on what I'm doing, I toggle between VIM and Komodo. I like that both can handle multiple languages. Mike - N

Re: [Tutor] VOT - Similar list for Ruby?

2007-02-01 Thread Mike Hansen
deeper into the Ruby community might have a better suggestion. Mike - NOTICE: This e-mail transmission and any documents or files attached to it contain information for the sole use of the above-identified individual or entity. Its contents may be privileged, confidential, and

Re: [Tutor] Replying to the tutor-list

2007-02-14 Thread Mike Hansen
__ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > The following tutor faq has an explanation: http://www.python.org/infogami-faq/tutor/tutor-why-do-my-replies-go-to-t he-person-who-sent-the-message-and-not-to-the-list/

Re: [Tutor] Convert my .bat and .vbs to .py

2007-02-15 Thread Mike Hansen
e this for me but if someone > could lead me i the right direction, I > would be grateful. > > Thank-you. > > Mark Maybe there's a way to use shutil's copytree function with os module's remove function or shutil's rmtree function? If not, use the glob m

[Tutor] FW: isinstance -> instance

2007-02-26 Thread Mike Hansen
Oops...I replied instead of replied all. > -Original Message- > From: Mike Hansen > Sent: Monday, February 26, 2007 2:43 PM > To: 'Bernard Lebel' > Subject: RE: [Tutor] isinstance -> instance > > > > > -Original Message- >

Re: [Tutor] recommendation for good OO book?

2007-03-07 Thread Mike Hansen
t; > thanks, > Jeff > I liked The Object Oriented Thought Process. It uses Java and C#(I think) as examples. I then reread the chapters in Learning Python on OO to get a better understanding of the Python way of doing it. Mike ___ Tutor maillist

Re: [Tutor] help:find a string in a text and replace it with a anotherstring

2007-03-07 Thread Mike Hansen
ould probably populate a dictionary of the words you want to replace and their replacements. Then use the replace method on the strings. Note that Word documents are binary gibberish, so you'd need to use win32 python windows stuff making this more complicated. On plain text files, it wouldn't be too bad. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Digital-to- Roman (pseudocode)

2007-03-08 Thread Mike Hansen
I think Dive Into Python has examples of digital to Roman and it might have Roman to digital. Might be worth looking at after you've come up with a solution. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] cookie expiration date format

2007-03-19 Thread Mike Hansen
ges.(Perl, Ruby, ...) This is a good example of it. Are there any 3rd party modules that let you set the expiration date to 'yesterday'? I know I could write a wrapper, but I'd rather not re-invent the wheel and save some time. Another example is ftplib. Other language's ftp mod

[Tutor] Question about exception

2007-04-05 Thread Mike Hansen
r to do it like this? (errors) = check_something() if errors: # do something Mike "head zoned out due to allergies" ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Question about exception

2007-04-05 Thread Mike Hansen
; FAX:(206) 232-9186 Mercer Island, WA 98040-0820; > (206) 236-1676 > > ``I don't make jokes, I just watch the Government and report > the facts...'' > Will Rogers Doh! It was right in front of me, but I wasn't connecting the dots. Thanks, M

Re: [Tutor] Python books on sale

2007-04-11 Thread Mike Hansen
o you can check them out before deciding if you want the dead tree version. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Using pyusb

2008-03-19 Thread Mike Holloway
ure what that is used for. Can anyone help get me started, I'm concerned mostly with the communication, I reckon I could actually get somewhere if I can just nail the first bit, here's my code so far: * Cheers in advance, Mike. import usb import sys import os import time from array

Re: [Tutor] datetime module problem

2008-04-17 Thread Hansen, Mike
Dick > In [23]: import datetime In [24]: x = datetime.datetime.now() In [25]: x Out[25]: datetime.datetime(2008, 4, 17, 14, 24, 18, 447000) In [26]: x.month Out[26]: 4 In [27]: x.day Out[27]: 17 In [28]: x.year Out[28]: 2008 In [30]: print "%s/%s/%s" %(x.month, x.day, x.year, ) 4/17/2008 Does that help? There's probably another way to do it, but this seems to work. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Hansen, Mike
anding of web programming, it might help you figure out why something isn't working properly in the framework. I'm curious about other tutor list member's thoughts on this. Am I out to lunch on this viewpoint? Anyway, here's a link to a python cgi tutorial: http://www.devshed.com/c

Re: [Tutor] Reading Multiple Files in Sequence

2008-04-18 Thread Hansen, Mike
cation, sometimes you can get killed by CSV files that have commas as part of the data. Example: zone 1, 90, "Hansen, Mike", "555 Elm Street, MayBerry", 555- Just splitting on commas will give you unexpected results since it will catch the stuff between the quotes. The CSV

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-21 Thread Hansen, Mike
f your macro. The macro will run a bit faster. It's essentially hiding all the updating to the document(s). You should set it back at the end of your macro: Application.ScreenUpdating = True. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] knowing when a list is updated by a thread

2008-04-23 Thread Hansen, Mike
Is there some other documentation or example? > > > -- > Bob Gailer http://effbot.org/librarybook/queue.htm Here's a direct link to the queue module. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] knowing when a list is updated by a thread

2008-04-23 Thread Hansen, Mike
Is there some other documentation or example? > > > -- > Bob Gailer http://effbot.org/zone/librarybook-index.htm That might help. It looks like it has some example code. Look at the Threads and Processes link and search for queue. Mike ___ Tu

Re: [Tutor] Open Source Hero my @$$!

2008-04-24 Thread Hansen, Mike
> -Original Message- > On > Behalf Of Marc Tompkins > Sent: Wednesday, April 23, 2008 7:27 PM > To: python tutor; [EMAIL PROTECTED] > Subject: [Tutor] Open Source Hero my @$$! > > Just thought I'd share something I found quite humorous... a > while back, I heard about Microsoft's "Op

Re: [Tutor] string from input file

2008-04-29 Thread Hansen, Mike
not reading the > values in correctly, is there a control character at the end? > The float value is ok. Your string has a line ending in it, so it doesn't match. It's essentially "Custom\n". Just use a slice to remove the line ending character(\n). Also, I d

[Tutor] Strip?

2008-04-30 Thread Hansen, Mike
this method is called on. Changed in version 2.2.3: The chars parameter was added. The chars parameter cannot be passed in earlier 2.2 versions. What characters are included as whitespace characters? Spaces? Tabs? Newlines? For some reason, I was reading whitespace as just spaces. Mike

Re: [Tutor] Getting started with Python

2008-05-16 Thread Hansen, Mike
Isn't it import file not import file.py or has that changed in recent versions? Mike From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jay Sent: Friday, May 16, 2008 9:44 AM To: tutor@python.org Subjec

Re: [Tutor] Pythoncom Tutorial

2008-05-19 Thread Hansen, Mike
> Bruce > Python Programming on Win32 might help. There's also a couple of articles on OnLamp. http://www.oreilly.com/catalog/9781565926219/index.html Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Why not to use include?

2008-06-09 Thread Hansen, Mike
t > like python server pages yet you like templating. (Using mod_python or > mod_wsgi[recommended] and the substitute function). > Other than a learning exercise or having a different idea about templating, I'd go with an existing template solution like Cheetah, Mako, Kid, Genshi. M

Re: [Tutor] IDE

2008-06-10 Thread Hansen, Mike
(not open source) but most who program on the mac love it. TextWrangler(not open source, but free) Open source --- VIM Emacs(Aquamacs) Eclipse Probably not considered IDEs ---- Smultron SubEthaEdit Mike ___ Tutor mail

Re: [Tutor] IDE

2008-06-10 Thread Hansen, Mike
odo IDE for me, and I use it off and on. I do my development on a Windows XP machine mostly for web applications that run on a Linux box. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] IDE

2008-06-10 Thread Hansen, Mike
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Sean Novak > Sent: Tuesday, June 10, 2008 10:44 AM > To: tutor@python.org > Subject: Re: [Tutor] IDE > > > > > Wow.. thanks everyone!! I am on a mac,, currently. But, I often > > bounce from one

Re: [Tutor] IDE

2008-06-10 Thread Hansen, Mike
> -Original Message- > From: Michael yaV [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 10, 2008 12:13 PM > To: Kent Johnson > Cc: Hansen, Mike; tutor@python.org > Subject: Re: [Tutor] IDE > > Since I'm on a mac, how about using Xcode? > >

[Tutor] WIn32 extension -= exposing methods with a windows handle

2008-06-21 Thread Mike Meisner
I would like to capture information from a multi-player internet game in order to tabulate player statistics. Specifically, I need information from a chat box within the main play window. Using the win32 extension (win32gui module: EnumWindows, EnumChildWIndows) I can obtain a handle to the ch

Re: [Tutor] Possible to import imports?

2008-06-23 Thread Hansen, Mike
program also needs that module, I'll import it in the main program. I think it helps for readability. Also each module can stand on it's own and not use another modules import of other modules. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Exploring the Standard Library

2008-07-08 Thread Hansen, Mike
, it might be a little dated, but I suspect that most of the modules haven't changed that much since it was written. I like it because it has example code. http://effbot.org/zone/librarybook-index.htm Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] New to pythong

2008-07-08 Thread Hansen, Mike
p://effbot.org/pyfaq/tutor-im-learning-python-what-should-i-program.h tm Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Problem with creating class instance

2008-07-09 Thread Mike Meisner
y", line 60, in run _GetCurrentDebugger().run(cmd, globals,locals, start_stepping) File "C:\Python25\Lib\site-packages\pythonwin\pywin\debugger\debugger.py", line 624, in run exec cmd in globals, locals File "C:\Documents and Settings\Mike and Patsy\D

[Tutor] List indexing problem

2008-07-25 Thread Mike Meisner
I need to do some statistical analysis by binning values into an array. Being new to Python, I tried to use a list of lists. I've extracted just the minimum code that I'm having trouble with: def testanalysis(): IP = [] temp = [[0, 0, 0],[0, 0, 0],[0, 0, 0]] # initialize to zero

Re: [Tutor] List indexing problem

2008-07-25 Thread Mike Meisner
Thanks Steve. It's obvious now that you've pointed it out. Do you happen to know if there is an efficient way to initialize a list like this without explicitly writing out each element? Mike - Original Message - From: "Steve Willoughby" <[EMAIL PROTECT

Re: [Tutor] Any Italian speakers?

2008-08-04 Thread Hansen, Mike
to program? thanks " I also tried Spanish, Potuguese, and Greek, but the Italian one came out the best. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] What has Editor X got that PyWin32 hasn't?

2008-08-12 Thread Hansen, Mike
ty to script it or record macros, an MP3 player, voice recognition, a Vulcan mind-meld programming link, oh... those last three are probably in emacs.. %-) Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] study advice on javascript to python hand-off

2008-08-14 Thread Hansen, Mike
y. Having the entire application on a server allows you to make changes without having to deploy it to many users. On client-side GUI apps, it'd be good to develop something that checks if a new version of the software is necessary to download. Oh well, I think I've babbled on enough abou

Re: [Tutor] study advice on javascript to python hand-off

2008-08-14 Thread Hansen, Mike
ross multiple browsers. JQuery seems to be the popular one now, but there are many JavaScript toolkits to choose from. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python Docs (Was: Reformatting phone number)

2008-08-21 Thread Hansen, Mike
use for me especially if it doesn't have example code. That's where The Python Standard Library book comes in handy since it has example code. After experimenting in the shell, if I really get stuck, I'll ask on this list. Maybe having tags or something to help with searches. On

Re: [Tutor] Support for datetime module

2008-09-08 Thread Hansen, Mike
p://www.zope.org/Members/fdrake/DateTimeWiki/FrontPage > > Kent This is probably moot since the OP solved the issue using other means, but I thought datetime was based on mxdatetime. Even if it isn't, mxdatetime supports Python 2.1 and newer. http://www.egenix.com/products/python/mxBase/mxDateTime/ Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] NetBeans IDE

2008-09-10 Thread Hansen, Mike
Being an editor/IDE junkie, I'm curious about the NetBeans IDE. Is anyone using it? If so, how is it? I believe it has a add-on for python.(NBPython) Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Printing Scripts with color/good formatting

2008-09-12 Thread Mike Meisner
I've been working with Python on two different machines: under Windows XP and under 64-bit Vista. In the XP version, the Python 32-bit editor prints my scripts using the color coding in the editor and a comfortable to read font. Under Vista 64-bit, only the IDLE environment is available which

Re: [Tutor] Web programming advice

2008-09-19 Thread Hansen, Mike
course, ask questions here if you need help. http://www.devshed.com/c/a/Python/Writing-CGI-Programs-in-Python/ http://docs.python.org/lib/module-cgi.html http://wiki.python.org/moin/WebProgramming Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Sorting Dictionary of Dictionary by certain Value

2008-09-24 Thread Hansen, Mike
'income': 700, > }, > 'simpsons' : { > 'husband' : "homer", > 'wife' : "marge", > 'kid' : "bart", > 'income': 600, > }, >

Re: [Tutor] cx_oracle module problems

2008-10-07 Thread Hansen, Mike
item__ > raise KeyError(key) > KeyError: 'ORACLE_HOME' > > > Link: > http://prdownloads.sourceforge.net/cx-oracle/cx_Oracle-4.2.tar > .gz?download > > Thanks, > JJ > > Did you python setup.py build first? The README.txt mentions it along the option of doing a bin

Re: [Tutor] cx_oracle module problems

2008-10-07 Thread Hansen, Mike
ctions for Debian(Which I believe Ubuntu is derived from) here: http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm#BABFEDEI After the client is installed, then hopefully you can build and install the cx_oracle module. Good luck. If you get stu

[Tutor] Output parameters from a stored procedure

2008-10-09 Thread Hansen, Mike
user='',password='x',database='x') cur = con.cursor() query = "EXECUTE blah blah blah" cur.execute(query) con.commit() con.close() Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Providing Solutions for all the Common Questions

2008-10-21 Thread Hansen, Mike
acceptance of my opinion! I am > interesting! > http://techblog.ironfroggy.com/ > Follow me if you're into that sort of thing: > http://www.twitter.com/ironfroggy A long time ago in a Python galaxy far far away, a tutor FAQ was written. It has been bounced around. I found i

[Tutor] Immediately committing changes to shelve files

2008-10-26 Thread Mike Meisner
I'm running a number of test cases and saving their results in a shelve file. A full run of the test cases takes about 36 hours. During that time, if something interrupts the run (e.g., a power outage, which has happened), I find that none of the completed test cases have been committed to the

[Tutor] Scaling a Tkinter canvas widget

2008-10-26 Thread Mike Meisner
I would like to plot various datasets on a Tkinter canvas widget. The problem is that each of my datasets have different x,y extremes. For instance, one dataset may have xmin = 0, xmax = 300, ymin = 0, ymax = 300; whereas the next dataset may have xmin = -200, xmax = 1200, ymin = 2000, ymax =

<    1   2   3   4   >