[ANNC] pynguin-0.15 python turtle graphics application

2013-06-13 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release ma

Re: Has anyone gotten Pyglet to work

2013-07-29 Thread Lee Harr
> $ ./pyglet.py > Traceback (most recent call last): >    File "./pyglet.py", line 2, in >      import pyglet >    File "/home/collier/pyglet.py", line 3, in >      song = pyglet.media.load('./boot.ogg') > AttributeError: 'module' object has no attribute 'media' Name your program something othe

[ANNC] pybotwar-0.8

2012-08-15 Thread Lee Harr
pybotwar is a fun and educational game where players write computer programs to control simulated robots. http://pybotwar.googlecode.com/ The focus of this release is making all functionality available from the PyQt interface and making PyQt the default interface. pybotwar uses pybox2d for the

QThread.terminate in Python 3

2012-09-23 Thread Lee Harr
Hi; I have asked this on the PyQt list, but have not seen any response yet. Hoping someone will be able to test this on their system to see if they see the same problem. The problem I am seeing is that terminating a QThread running certain code will freeze the program, requiring it to be kill'd.

Re: QThread.terminate in Python 3

2012-09-28 Thread Lee Harr
>> I understand that use of QThread.terminate is discouraged, >> but it has worked well previously and I would like to continue >> this use if possible. >> >       And now you've encountered the reason it is discouraged. Ok. Point taken. What I hear you saying is that once I use .terminate anyth

python wiki gone?

2013-01-05 Thread Lee Harr
Have I just happened across wiki.python.org at a bad time, or is the wiki gone? When I go to wiki.python.org I get redirected to http://wiki.python.org/moin/ which is 404 Not Found. -- http://mail.python.org/mailman/listinfo/python-list

Ubuntu Python -dbg packages

2013-01-06 Thread Lee Harr
I am using: Ubuntu 12.10 Python 3.2.3 Qt 4.8.2 PyQt 4.9.3 I also have the ubuntu -dbg packages: python3-dbg python3-pyqt4-dbg I don't understand why python3-dbg cannot import the PyQt4 modules... $ python3 Python 3.2.3 (default, Oct 19 2012, 19:53:57) [GCC 4.7.2] on linux2 Type "help", "

Re: Ubuntu Python -dbg packages

2013-01-06 Thread Lee Harr
> On 1/6/2013 8:42 AM, Lee Harr wrote: >> >> I am using: >> Ubuntu 12.10 >> Python 3.2.3 > > import has been considerably redone, and hopefully upgraded, in 3.3. Ok, so now I tried python3.3-dbg but I don't think the pyqt modules are compiled for 3.3 and t

Re: Ubuntu Python -dbg packages

2013-01-07 Thread Lee Harr
>> Ok, so now I tried python3.3-dbg but I don't think the pyqt >> modules are compiled for 3.3 and that may be preventing >> the import there. >> >> Those extension modules would need to be compiled for >> an exactly matching python interpreter, right? > > For Windows visual C compiler, that is tr

[ANNC] vbot-0.3

2012-06-17 Thread Lee Harr
vBot is a visual programming game.     Use a small set of command tiles to build a program.     The program must control the vBot and make it activate     every target using the limited command set. It is meant to be an easy environment for introducing     some programming concepts to beginning p

[ANNC] pynguin-0.10 python turtle graphics application

2011-06-25 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release c

Re: Python threading/multiprocessing issue.

2011-07-15 Thread Lee Harr
> I'm working on a tool that runs a number of process is separate thread. > I've, up to this point, been using threading.Thread, but from what I > read multiprocess will allow multiple processors to be used >  From the python docs on multiprocessing. > leverage multiple processors on a giv

Re: turtles slowing down

2011-07-21 Thread Lee Harr
>  there > was a steady slowing down of turtles as time goes The problem is that when the turtle "draws" it does not just put marks on the canvas, it actually creates new canvas items. Canvas items aren't just pixels on the canvas, they are full-fledged objects which (if you wanted to) you could

parsing function parameters

2011-08-03 Thread Lee Harr
I am trying to get some information about a function before (and without) calling it. Here is what I have so far. I chose to go with a regular expression, so now I have 2 problems :o) def pdict(f, pstr):     '''given a function object and a string with the function parameters,     return a dic

RE: parsing function parameters

2011-08-03 Thread Lee Harr
>> I am trying to get some information about a function >> before (and without) calling it. > how about def pdict(f):     parameter_defaults = {}     defaults = f.func_defaults     defaultcount = len(defaults)     argcount = f.func_code.co_argcount     for i in xrange(f.func_code.co_argco

RE: parsing function parameters

2011-08-03 Thread Lee Harr
Needed to make one change... for functions with no default args: def pdict(f):     parameter_defaults = {}     defaults = f.func_defaults     if defaults is not None:     defaultcount = len(defaults)     else:     defaultcount = 0     argcount = f.func_code.co_argcount     for i in xrang

[ANNC] pynguin-0.11 python turtle graphics application

2011-08-10 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release c

force --install-layout=deb on systems where that makes sense?

2011-04-19 Thread Lee Harr
Is there a way to make distutils use --install-layout=deb but only on systems where that makes sense? I just noticed that if someone installs without that switch, my app will not be able to find its data files, because sys.prefix = /usr  but the installation is actually in to /usr/local I suppo

Re: ? Pythoncard

2005-10-28 Thread Lee Harr
On 2005-10-28, LenS <[EMAIL PROTECTED]> wrote: > Never mind I figured out my on stupid mistake > How about posting a very simple explanation of what you did wrong and how you fixed it, instead of leaving the next person who has this problem with a dead end? Thanks. -- http://mail.python.org/ma

Re: 3-dimensional plot in Python?

2005-11-11 Thread Lee Harr
On 2005-11-11, questions? <[EMAIL PROTECTED]> wrote: > I want to make a 3d plot. x is a vector(discrete), y is also a > vector(discrete), for each pairwise x,y I have a value z(x,y)(it is not > a function, just discrete values for each pair of x,y) > > I want to show them on a two dimensional plot

Re: Curses & Keypress

2005-11-11 Thread Lee Harr
On 2005-11-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Now that I have gotoxy() down for moving the cursor around, I want that > to be a result of keypresses (namely from the numpad -- 7 = NorthWest, > 8 = North, 9 = NE, etc...). I have little clue how to do this. After > searching google,

Re: odd behavior

2005-11-11 Thread Lee Harr
On 2005-11-11, Kristian Zoerhoff <[EMAIL PROTECTED]> wrote: > On 11 Nov 2005 11:34:47 -0800, Greg <[EMAIL PROTECTED]> wrote: >> Forgive me, and be kind, as I am just a newby learning this language >> out of M.L. Hetland's book. The following behavior of 2.4.1 seems very >> strange >> >>> x = ['aar

Re: Python, Linux, Desktop Environment

2005-11-16 Thread Lee Harr
On 2005-11-16, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > So, I've written my first GUI app in python. I've turned it into a > binary .exe and .app that runs on Windows and Mac respectively, but on > my Linux box, where I wrote the thing, I still have to drop to the > command line and ./myscri

Re: Is there a way to create a button in either pygame or livewires?

2005-11-19 Thread Lee Harr
> Is there a way to create a button in either pygame or livewires, that is > able to be clicked and when clicked sends a command to restart the program? > You could try something like this using pygsear (http://www.nongnu.org/pygsear/) The button can call either start() which just makes a new G

Re: Tabs bad (Was: ANN: Dao Language v.0.9.6-beta is release!)

2005-12-04 Thread Lee Harr
> No matter what setting, the order of the indents is kept. This is not > the case if tabs and spaces are intermixed, as some style guides > suggest. > I have never seen anyone suggest mixing tabs and spaces, and I have read a lot of tabs-vs-spaces flamewars in my time. Everyone agrees that mixi

Re: What can I do with Python ??

2005-01-02 Thread Lee Harr
On 2005-01-02, Brian Beck <[EMAIL PROTECTED]> wrote: > Alex Martelli wrote: >> You _gotta_ be kidding, right...? The Beginner's Guide link takes you >> right to the BeginnersGuide page which starts with the reassurance that >> Python is easy to learn even if you're new to programming and continues

Re: What can I do with Python ??

2005-01-04 Thread Lee Harr
On 2005-01-03, Steve Holden <[EMAIL PROTECTED]> wrote: > John J. Lee wrote: > >> Lee Harr <[EMAIL PROTECTED]> writes: >> [...] >> >>>I think it looks pretty good. The only problem I see is section 5 >>>where it says: >>> >>&g

Re: date/time

2005-01-05 Thread Lee Harr
On 2005-01-05, Nader Emami <[EMAIL PROTECTED]> wrote: > L.S., > > Could somebody help me how I can get the next format of date > from the time module? > > example: I have to have this time 20050105. It is the next > attributes of format %Y%m%d. > I would use the datetime module: >>> import date

Re: get the IP address of a host

2005-01-05 Thread Lee Harr
On 2005-01-05, none <""> wrote: > I want to determine the outside (non local, a.k.a. 127.0.0.x) ip > addresses of my host. It seems that the socket module provides me with > some nifty tools for that but I cannot get it to work correctly it seems. > > Can someone enlightened show a light on this:

Re: "A Fundamental Turn Toward Concurrency in Software"

2005-01-08 Thread Lee Harr
>> [http://www.gotw.ca/publications/concurrency-ddj.htm]. It argues that the >> continous CPU performance gain we've seen is finally over. And that future >> gain would primary be in the area of software concurrency taking advantage >> hyperthreading and multicore architectures. >> > Well, yes.

Re: Python/Qt Problem

2005-01-08 Thread Lee Harr
On 2005-01-08, Michael <[EMAIL PROTECTED]> wrote: > Hi, > > I am experiencing something very weird with PyQt. I have created several > windows based on QWidget using Designer. I can easily hide and show > these with the hide and show methods. However I have just created a new > window with Desig

Re: why not datetime.strptime() ?

2005-01-08 Thread Lee Harr
On 2005-01-07, Skip Montanaro <[EMAIL PROTECTED]> wrote: > > josh> Shouldn't datetime have strptime? > > Sure, but it's not quite as trivial to implement as was strftime() support. > While strftime() is a C library function and thus easily called from within > the datetime C code, strptime() is

Re: Another scripting language implemented into Python itself?

2005-01-25 Thread Lee Harr
>> That approach creates a sort of fragility, though. >> Python includes, along with much else, os.unlink(). >> Suppose our original poster doesn't want end-users >> to be able to delete files (or directories ...). > > I don't remember if the OP specified *where* the scripted application is to > b

Re: Inherting from object. Or not.

2005-01-26 Thread Lee Harr
> What is the difference between inherting form object, and not doing it? E.g, > what's the difference between the two following classes? > > class foo: > pass > > class bar(object): > pass > > Sometimes people inherit from it, and sometimes not. I don't see a pattern in > their choic

Re: About standard library improvement

2005-02-03 Thread Lee Harr
On 2005-02-03, BJörn Lindqvist <[EMAIL PROTECTED]> wrote: > The process seem slow. I've submitted two patches and haven't gotten > any response so far, but it has only been three weeks. Other patches > seem to be idling for months. I'm not complaining, just want to know > why the process is so slow

Re: Popularizing SimpleHTTPServer and CGIHTTPServer

2005-02-03 Thread Lee Harr
> Does anyone know how to use SimpleHTTPServer to: > > 1. Support virtual hosts? > > 2. Support SSL? > > I'd like to use SimpleHTTPServer to create some simple reporting utilities, > but can't get past these two points. Is there a NotSoSimpleHTTPServer? I think I would point to twisted for that.

Re: BaseHTTPServer and priviledge separation?

2005-06-25 Thread Lee Harr
> to use a port below 1000 on a Unix system one needs root priviledges. > But it's dangerous to execute all of a script under those priviledges. > Therefore I'd like to drop the root priviledges as soon as possible. > (How) is this possible? > Are you sure you don't just want to use twisted? http

Re: Favorite non-python language trick?

2005-06-25 Thread Lee Harr
>> Higher-order functions like map, filter and reduce. As of Python 3000, >> they're non-python tricks. Sigh - i guess it's time for me to get to know >> list comprehensions a bit better. >> Couldnt there just be a "functional" module ?... from functional import map, filter, reduce -- http://

Re: pyqt, windows xp and systray applications.. possible?

2005-06-28 Thread Lee Harr
On 2005-06-28, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > hi, > > I've been searching long, and found some information, but still not > enough for me to actually make it happen. so, I ask here. > > is it possible, in windows, to make PyQT application hide itself into > systray area? > > I read,

Re: Boss wants me to program

2005-06-28 Thread Lee Harr
> make something that will work for him, am I correct? The other > alternative is to install console mode linux on it and hope that the > ncurses library can be used by python. The system could be as low as a > 486 dx2 66 with maybe 16 megs of ram. Well, I just thought I'd give you > people more in

Re: Ann: The first PyWeek Python Game Programming Competition

2005-07-08 Thread Lee Harr
> See the competition timetable (including competition dates in various > timezones), rules, sign-up (commencing 6th August) at: > > http://www.mechanicalcat.net/tech/PyWeek > Sounds like fun. One thing. From the website ... > Clip Art > note: > more links welcome How about: http://www.open

Re: Query - Pexpect

2005-07-22 Thread Lee Harr
On 2005-07-22, Girish <[EMAIL PROTECTED]> wrote: > Hi , > > I wanna do some automation work using "pexpect". > I have an application which must be invoked from the command line in > linux environment,it consists of buttons,textboxes etc can i access > those widgets using "pexpect",say i wanna enter

Re: inheriting from datetime

2005-08-01 Thread Lee Harr
On 2005-08-01, Rob Conner <[EMAIL PROTECTED]> wrote: > So this is simple, why can't I run the following code? I've tried many > variances of this, but simply cannot inherit from datetime or > datetime.datetime. I get this on line 3. > TypeError: function takes at most 2 arguments (3 given) > >

Re: command line path

2005-09-05 Thread Lee Harr
On 2005-09-05, mclaugb <[EMAIL PROTECTED]> wrote: > I am trying to pass the name of several files to a python script as command > line arguments. When i type in > > > python ImportFiles_test.py C:\Program Files\National Instruments\LabVIEW > 7.1\project\calibration\FREQUENCY_ > 13.CSV > > The fo

Re: simple question: $1, $2 in py ?

2005-09-05 Thread Lee Harr
On 2005-09-05, es_uomikim <[EMAIL PROTECTED]> wrote: > Hi, > > I have one small simple question, that I didn't found answer in > google's. It's kind of begginers question because I'm a one. ; ) > > I wanned to ask how to use scripts with vars on input like this: > > $ echo "something" | ./my_scrip

Re: OT: why are LAMP sites slow?

2005-02-06 Thread Lee Harr
On 2005-02-06, Brian Beck <[EMAIL PROTECTED]> wrote: >> Refactoring a database on a live system is a giant pain in the ass, >> simpler file-based approaches make incremental updates easier. >> > As much as I hate working with relational databases, I think you're > forgetting the reliability even

Re: OT: why are LAMP sites slow?

2005-02-06 Thread Lee Harr
>> Not only that, but with a well-design RDBMS you can put your >> schema changes inside of a transaction and make sure everything >> is right before committing. >> > Bear in mind, however, that *most* common RDBMS will treat each DDL > statement as implicitly committing, so transactional change

Re: pygame and music

2005-02-10 Thread Lee Harr
On 2005-02-10, maxime <[EMAIL PROTECTED]> wrote: > Hi, I try to develop a game in python and pygame. > In my game I play a music (.mid with pygame.mixer.music) but sometime > I need to accelerate it but I don't see how to do that with pygame. Is > it possible? If not, do you know an other python mu

Re: possible python/linux/gnome issue!!

2005-02-26 Thread Lee Harr
On 2005-02-26, bruce <[EMAIL PROTECTED]> wrote: > hi... > > i'm running rh8.0 with gnome.. i'm not sure of the version (it's whatever rh > shipped). > > i've recently updated (or tried to update) python to the latest version. > when i try to run the 'Server Settings/Services' Icon within gnome, not

Re: Can a method in one class change an object in another class?

2005-03-06 Thread Lee Harr
On 2005-03-06, Stewart Midwinter <[EMAIL PROTECTED]> wrote: > I've got an app that creates an object in its main class (it also > creates a GUI). My problem is that I need to pass this object, a > list, to a dialog that is implemented as a second class. I want to > edit the contents of that list a

Re: About Databases...

2005-03-12 Thread Lee Harr
On 2005-03-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello NG, > >I am still quite a newbie with Python (I intensely use wxPython, anyway). > I would like to know what are, in your opinions, the best/faster databases > that I could use in Python (and, of course, I should be able to "li

Re: psycopg authentication

2005-03-12 Thread Lee Harr
On 2005-03-12, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello, I'm new to both PostgreSQL and psycopg and I'm trying to connect > to my database running on localhost. I have postgres setup to do md5 > authentication and this works when using a db admin tool on my local > network. For some rea

Re: Web framework

2005-03-14 Thread Lee Harr
On 2005-03-14, Joe <[EMAIL PROTECTED]> wrote: > On Sun, 13 Mar 2005 19:20:34 +0100, "Diez B. Roggisch" ><[EMAIL PROTECTED]> wrote: >>Plain wrong. You can access them via FTP and WEBDAV. > > Not wrong. I am aware of this, but it's not like that many development > tools can work through FTP or WebDav

Re: Multiple concurrent telnet sessions

2004-12-08 Thread Lee Harr
On 2004-12-08, Tony Pryor <[EMAIL PROTECTED]> wrote: > Hello, > > Anyone know if running two client telnet sessions at the same time > should be an inherent problem? They don't seem to want to share a port > or are they trying to use the same console for interaction with the > connected servers? >

Re: Python for a 10-14 years old?

2005-03-27 Thread Lee Harr
On 2005-03-27, Joal Heagney <[EMAIL PROTECTED]> wrote: > Couldn't help myself. I had to write the Dragon Fractal in python.turtle >:) > That's nice. I ported it to use the pygsear Turtle class. http://www.nongnu.org/pygsear/ --- Dragon.py 2005-03-27 08:48:13.0 -0500 +++ pDragon.py 200

Re: Python for a 10-14 years old?

2005-03-28 Thread Lee Harr
On 2005-03-27, Joal Heagney <[EMAIL PROTECTED]> wrote: > Couldn't help myself. I had to write the Dragon Fractal in python.turtle >:) > That's nice. I ported it to use the pygsear Turtle class. http://www.nongnu.org/pygsear/ --- Dragon.py 2005-03-27 08:48:13.0 -0500 +++ pDragon.py 200

Re: Problems extracting attachment from email

2005-04-07 Thread Lee Harr
On 2005-04-07, foten <[EMAIL PROTECTED]> wrote: > The problem I'm having is when I'm trying to extract the > attachement using > f=open(Filename, "wb") > f.write(msg.get_payload(decode=1)) > f.close() > Not the whole message is decoded and stored! > When only trying >

Re: PyChart into web site error

2005-04-12 Thread Lee Harr
On 2005-04-12, Michele Petrazzo <[EMAIL PROTECTED]> wrote: > I'm using PyChart like a module for create charts into a little web > site, but when I try to create one, I have this error: > > /var/www/html/lgt/draw.py:19, in draw: > can = canvas.init(self.file_name) > /usr/lib/python2.3/site-packages

Re: PyChart into web site error

2005-04-13 Thread Lee Harr
On 2005-04-13, Michele Petrazzo <[EMAIL PROTECTED]> wrote: > Lee Harr wrote: >> On 2005-04-12, Michele Petrazzo <[EMAIL PROTECTED]> wrote: >> >>>I'm using PyChart like a module for create charts into a little web >>>site, but when I try to creat

Re: Determine ip address

2005-04-15 Thread Lee Harr
On 2005-04-15, codecraig <[EMAIL PROTECTED]> wrote: > hi, >how can i use python to figure the ip address of the machine which > the python script is running on? I dont mean like 127.0.0.1but i > want the external IP address (such as ipconfig on windows displays). > > any ideas?? > I use

Re: pysvn install on freebsd

2005-04-17 Thread Lee Harr
On 2005-04-17, Timothy Smith <[EMAIL PROTECTED]> wrote: > has anyone used or installed this on fbsd > the install for it is totally redundant. i get this error for it > > make -f freebsd.mak clean all test > cd ../Source && make -f pysvn_freebsd_py.mak clean > make: cannot open pysvn_freebsd_py.mak

Re: sscanf needed

2005-04-17 Thread Lee Harr
On 2005-04-17, Andrew E <[EMAIL PROTECTED]> wrote: > Uwe Mayer wrote: >> Hi, >> >> I've got a ISO 8601 formatted date-time string which I need to read into a >> datetime object. >> Is there a shorter way than using regular expressions? Is there a sscanf >> function as in C? > > in addition to the

Re: [pygame] Very simple program fails. Why?

2005-04-26 Thread Lee Harr
On 2005-04-26, Brent W. Hughes <[EMAIL PROTECTED]> wrote: > I'm just starting to learn pygame. I write what I think is just about the > simplest program that should display a window and then quit. > #--- > import sys > import time > import pygame > > py

Re: interactive web graphics

2005-04-28 Thread Lee Harr
On 2005-04-27, Eckhoff, Michael A <[EMAIL PROTECTED]> wrote: > Hello, > > I failed to locate a list for pygtk, so I thought I'd > ask my question here. Is it possible to write CGI > scripts that bring up a GUI (as in GTK+, QT, Tk, ...) > or an openGL display that is windowed inside a web > browser?

Re: Function and turtle help

2014-03-07 Thread Lee Harr
> I am completely new to programming so thanks for any help! Not sure it will help, and hopefully I am not self-promoting too much, but this may be of interest to you: http://pynguin.googlecode.com/ http://code.google.com/p/pynguin/wiki/StartProgramming I am interested in feedback from new pro

[ANNC] pybotwar-0.9 : now using pybox2d-2.3b0

2014-05-03 Thread Lee Harr
pybotwar is a fun and educational game where players write computer programs to control simulated robots. http://pybotwar.googlecode.com/ The focus of this release is updating to use the latest available pybox2d version: 2.3b0 pybotwar uses pybox2d for the physical simulation. It can be run in

Re: Using PyQT with QT Designer

2013-08-23 Thread Lee Harr
> That's the problem though. It is exactly how I want it in designer. It's > perfect as it is in designer when I preview it. Here is a screenshot of the > preview: http://i.imgur.com/ULRolq8.png That's not a preview. That's just the regular design view. (you can tell by the little dots in the back

os independent rename

2011-09-17 Thread Lee Harr
I just got a bug report the heart of which is the difference between unix and windows in using os.rename (ie, "On Windows, if dst already exists, OSError will be raised") Hmm, I thought, maybe I'm supposed to use shutil here. That is the "high-level" operations. Unfortunately, shutil.move says i

Re: os independent rename

2011-09-17 Thread Lee Harr
> shutil.move works for me, at least in Python 2.7. The docstring> doesn't > seem to match the code Thanks for checking that. Looks like there is a closed report about the misleading docs:http://bugs.python.org/issue12577 Closed a couple of months ago, but the docs have not madeit to the web ye

[ANNC] pynguin-0.12 (fixes problems running on Windows)

2011-09-21 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release f

Need Windows user / developer to help with Pynguin

2011-10-27 Thread Lee Harr
I develop the free python-based turtle graphics application pynguin. http://pynguin.googlecode.com/ Lately I have been getting a lot of positive comments from people who use the program, but I am also getting a lot of feedback from people on Windows (mostly beginners) who are having trouble get

Re: Need Windows user / developer to help with Pynguin

2011-10-28 Thread Lee Harr
>> I started a wiki page >> here:  >> >> http://code.google.com/p/pynguin/wiki/InstallingPynguinOnWindows >> >> but I can't even test if

Re: Need Windows user / developer to help with Pynguin

2011-10-29 Thread Lee Harr
Thanks to all those who tested and replied! > For Windows users who want to just run Pyguin (not modify or tinker > with the source code), it would be best to bundle Pynguin up with > Py2exe I considered that, but I agree that licensing issues would make it problematic. > the Python installer

RE: Need Windows user / developer to help with Pynguin

2011-10-30 Thread Lee Harr
>>> Py2exe >> >> I considered that, but I agree that licensing issues would make it >> problematic. > > What licensing issues concern you? The py2exe license shouldn't be a > problem and py2exe or something like it is good advice. I think PyQt 4 would be the biggest issue. It is GPL 2 / 3. I th

[ANNC] pynguin-0.13 python turtle graphics application now uses python 3

2013-03-16 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release p

Re: pynguin-0.13 python turtle graphics application now uses python 3

2013-03-17 Thread Lee Harr
>> Pynguin is a python-based turtle graphics application. >>     It combines an editor, interactive interpreter, and >>     graphics display area. > > > What does pynguin have that the builtin python turtle does not? It is meant to be easier to get started with. You start the application and it

[ANNC] pynguin-0.14 python turtle graphics application

2013-04-13 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release ad

Re: [ANNC] pynguin-0.14 python turtle graphics application

2013-05-03 Thread Lee Harr
>>> Pynguin is a python-based turtle graphics application. >>> http://pynguin.googlecode.com/ >> I wonder why Pynguin does not get more traction in the teaching sector. >> Looks ideal for teaching kids. > I suggest that it's because Pynguin is not yet fully operational. > I don't know where to re

Re: Indentation/whitespace

2005-12-24 Thread Lee Harr
On 2005-12-23, Gary Herron <[EMAIL PROTECTED]> wrote: > You've got the visible/invisible aspect of things > *exactly* backwards. > The point on a line of text where things change > from white space to > non-white space is *highly* visible. The several > pixels that represent a > { or } are nearl

using NamedTemporaryFile on windows

2005-12-28 Thread Lee Harr
Is there any other reason to use a named tempfile other than to be able to open it again? I am trying to understand this section of the documentation regarding NamedTemporaryFile: """ Whether the name can be used to open the file a second time, while the named temporary file is still open, var

Re: using NamedTemporaryFile on windows

2005-12-29 Thread Lee Harr
On 2005-12-29, Peter Hansen <[EMAIL PROTECTED]> wrote: > Lee Harr wrote: >> Is there any other reason to use a named tempfile other than >> to be able to open it again? > As it says, if you *don't close* the file, you can open it again if you > are on a platfo

Re: Pygame Help

2006-07-29 Thread Lee Harr
> I was curious how you would program the seperate > images to fall together and not break apart, because pygame and > livewires uses images as collision detection, so therefore you can't > make most of the shapes a single image because they will have > transparent spaces as part of the image, whic

Re: drawingarea problem

2006-08-17 Thread Lee Harr
On 2006-08-16, Rafa³ Janas <[EMAIL PROTECTED]> wrote: > Is somebody try to paint filled boxes in drawingarea? > I don't know how to paint line or someting like this. > Maybe somebody have tutorial or samples? Your question could use a few more details (like what you have tried, what "drawingarea"

Re: plpython and pickle

2006-08-18 Thread Lee Harr
On 2006-08-17, Gerardo Herzig <[EMAIL PROTECTED]> wrote: > Hi all, sory if this is kind of [OT], but cannot find the answer for > this behaviour > Might try on a postgres mailing list. I'd say it is more on topic there... > You are now connected to database "sessions". > sessions=# s

creating many similar properties

2006-10-17 Thread Lee Harr
I understand how to create a property like this: class RC(object): def _set_pwm(self, v): self._pwm01 = v % 256 def _get_pwm(self): return self._pwm01 pwm01 = property(_get_pwm, _set_pwm) But what if I have a whole bunch of these pwm properties? I made this: class

Re: pexpect with apache

2006-10-18 Thread Lee Harr
> Well, first i don't think it is a good idea to have the python script > tu su to root, but for it to work, i think (Totally unsure about that) > www has to be in group wheel to be able to su. Maybe sudo can help here. -- http://mail.python.org/mailman/listinfo/python-list

Re: Cross-site scripting (XSS) defense

2006-06-16 Thread Lee Harr
On 2006-06-16, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is there a module (or, better yet, sample code) that scrubs > user-entered text to remove cross-site scripting attacks, while also > allowing a small subset of HTML through? > > Contemplated application: a message board that allows peopl

Re: Persistent variables in python

2006-12-26 Thread Lee Harr
> Found out a quite fun way to store persistent variables in functions in > python. > > Is this concidered bad coding practice since I guess persistent > variables in functions are not meant to be? I am using is in one of my recent projects. I was thinking of it sort of like "static" variables

Re: import datetime

2006-01-31 Thread Lee Harr
> I have just installed Python2.4.2 on our HP-UX system. But when I try > to import datetime modlue I get the following error > > ~~~ from datetime import datetime > Traceback (most recent call last): > File "", line 1, in ? > ImportError: No module named datetime > ~

Re: import datetime

2006-02-01 Thread Lee Harr
>> I did look at the sys.path but the issue is that I dont see a module >> name datetime anywhere. Only datetime thing that is there is in include >> directory and it is datetime.h, which I think is for C interface. I >> have a python installed on my Windows desktop and it is working fine >> there.

Re: load module named "datetime" and change the directory of output file?

2006-02-01 Thread Lee Harr
> 1. How can I add a standard module named "datetime" in > Jython when the error happens :"Traceback (innermost > last): > File "C:\python\test.py", line 3, in ? > ImportError: no module named datetime " > The line 3 is writen: "from datetime import datetime, > tzinfor" > The datetime module wa

Re: Form and Database

2005-05-03 Thread Lee Harr
On 2005-05-03, v <[EMAIL PROTECTED]> wrote: > Please help. I'm new with Python. > Using Boa (or Pythoncard) and pysqlite, how can I read/write from/to > database, thanks > > Have you tried the pysqlite basic intro? http://initd.org/tracker/pysqlite/wiki/basicintro Doesn't mention boa or pyth

Re: PyGame and Rotozoom (Sorry if OT)

2005-05-20 Thread Lee Harr
On 2005-05-20, J. W. McCall <[EMAIL PROTECTED]> wrote: > I'm not sure if this is off-topic, since it doesn't deal with Python > itself, but here goes: > > I'm messing around with writing a simple "game" where the player (a > crudely drawn smiley face) moves by rotating and moving back or forward

Re: What's wrong with Zope 3 ?

2005-06-01 Thread Lee Harr
>> The current stable brance is Zope2.X If you want to incorporate some >> functionalty from X3 in Zope 2.X, do a search for "Five" > > No, I do not want to migrate components from a new major release > backwards, as well as I do not want to migrate applications from WinXP > to Win98. This seems to

Re: Show current ip on Linux

2005-06-13 Thread Lee Harr
On 2005-06-13, David Van Mosselbeen <[EMAIL PROTECTED]> wrote: > Hi, > Im a newbie in Python, and also in Fedora Core 3. (Yes, Linux is fine > man :-) > > My question is : How can i rwite a script that show my current ip. If i have > more than one network card, the script must then show all used ip

Re: 1980's Home Computer-style Package.

2005-06-16 Thread Lee Harr
On 2005-06-16, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2005-06-16, Ralph Corderoy <[EMAIL PROTECTED]> wrote: > >>> Wild-ass guess, but you might try googling for "turtle python". >> >> OK, I've done that but it didn't help; it wasn't tied in with >> Turtle graphics, with which I'm familiar. >

Re: How to create new files?

2007-07-12 Thread Lee Harr
> So far, I've found that unlike with the C++ version of fopen(), the > Python 'open()' call does not create the file for you when opened > using the mode 'w'. I get an exception saying that the file doesn't > exist. Works for me... :~$ mkdir foo :~$ cd foo :foo$ ls :foo$ python Python 2.4.4 (#2

Re: Class decorators do not inherit properly

2007-07-12 Thread Lee Harr
> Traceback (most recent call last): > File "/Users/chris/Projects/CMR/closed.py", line 132, in > class M0(MetropolisHastings): > File "/Users/chris/Projects/CMR/closed.py", line 173, in M0 > @_add_to_post > NameError: name '_add_to_post' is not defined > > yet, when I look at the dict

Re: Class decorators do not inherit properly

2007-07-13 Thread Lee Harr
>> I think the term "class decorator" is going to eventually >> mean something other than what you are doing here. I'd >> avoid the term for now. >> >> >> When you decorate a class method, >> the function you use >> needs to be defined before the method definition. > > FWIW, the term "class metho

Re: newbie question on def, passing param's help

2007-07-13 Thread Lee Harr
> I have a def that I have been using but I realized that sometimes I need a > LIST with > 5 or 6 brands instead of 4 so I want to put LIST outside of the def but I > can't wrap > my head around a way to get LIST outside the def while still passing the same > 4 > parameters in the function. I'

  1   2   >