Re: How to import xplt, pylab?

2007-11-23 Thread [EMAIL PROTECTED]
On Nov 23, 8:03 pm, Robert Kern <[EMAIL PROTECTED]> wrote: > > In any case, xplt has been deprecated for a long time. It probably doesn't > work. > I don't recommend using it unless if you want to take on the responsibility of > maintaining it. > > -- BTW

Disk Space Script

2007-11-24 Thread [EMAIL PROTECTED]
Hello all, I would like to write a script in Python to email me when disk space gets below a certain value. My first question (I'm sure of many) is how do get this output into a dictionary or list to index the values? import os os.system("df -x cifs -x iso9660 | grep -E ^/dev | awk '{ print $1,$

Re: Disk Space Script

2007-11-24 Thread [EMAIL PROTECTED]
On Nov 24, 2:11 pm, [EMAIL PROTECTED] wrote: > On Nov 24, 11:46 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > > > Hello all, > > > I would like to write a script in Python to email me when disk space > > gets below a certain value.

Re: mod_python

2007-11-25 Thread [EMAIL PROTECTED]
On Nov 24, 1:19 am, Vernon Wenberg III <[EMAIL PROTECTED]> wrote: > Why do I receive a "File not found" error on a perfect good and simple > script but properly receive errors when I deliberately add errors in the > script? The file is there, it just doesn't do a

Re: How to Teach Python "Variables"

2007-11-26 Thread [EMAIL PROTECTED]
Hrvoje Niksic wrote: > greg <[EMAIL PROTECTED]> writes: > > > none wrote: > >> IIRC, I once saw an explanation how Python doesn't have > >> "variables" in the sense that, say, C does, and instead has bindings > >> from names to objec

Re: How to Teach Python "Variables"

2007-11-26 Thread [EMAIL PROTECTED]
Chris Mellon wrote: > On Nov 26, 2007 1:21 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hrvoje Niksic wrote: > > > greg <[EMAIL PROTECTED]> writes: > > > > > > > none wrote: > > > >> IIRC, I once saw an explanation how

Re: Contextmenu in a QTreeWidget with PyQT

2007-11-27 Thread [EMAIL PROTECTED]
On Nov 22, 8:30 am, David Boddie <[EMAIL PROTECTED]> wrote: > On Wed Nov 21 19:46:48 CET 2007,blavenwrote: > > > I apologize in advance if this is not the correct forum to ask this > > and if someone knows a better place, please let me know. > > There is a mail

[RFC] PyMultimethods

2007-11-27 Thread [EMAIL PROTECTED]
I've written a small project that implements multimethods for python. I'd like anyone who's interested to check out the code and give me some feedback, such as what features they would like to see added, what could be improved, etc. This is actually one of my first projects I did with python. I d

Re: PyMultimethods

2007-11-27 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > On Nov 27, 7:14 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > I've written a small project that implements multimethods for python. > > Interesting. Were you aware of the article Guido wrote on multimethods > in pyt

Unexpected behavior when initializing class

2007-11-28 Thread [EMAIL PROTECTED]
hing I clearly don't understand here. Can anybody explain? Thanks! Python 2.4.4 (#1, Oct 23 2006, 13:58:18) [GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] on linux2 Alfred J. Fazio, [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Unexpected behavior when initializing class

2007-11-28 Thread [EMAIL PROTECTED]
On Nov 28, 3:31 am, Paul Rudin <[EMAIL PROTECTED]> wrote: > You have to understand that the default value for v - an empty list - > is made at compile time - and it's the *same* list every time it's > used i.e. if you don't pass in a value for v when you make new >

Re: Troubleshooting garbage collection issues

2007-11-28 Thread [EMAIL PROTECTED]
Thanks for the thoughts - much appreciated! The threaded super-goat was indeed the offender. A very aggressive QA tester got us enough of a pattern to identify the offending module: pyOpenSSL. After looking at it closely, we found there are problems with its thread handling. In particular, the G

Python Network Graph Library

2007-11-28 Thread [EMAIL PROTECTED]
Hi Folks, I am looking for a network Graph Library with Python bindings (Iron or C!). Just need a simple relationship visualisation - seen a few via google but many seem to be unmaintained. Any suggestions? Thanks, Davy Mitchell -- Davy Mitchell Blog - http://daftspaniel.blogspot.com Twitter -

Re: Books on Python

2007-11-29 Thread [EMAIL PROTECTED]
I've read "Begining Python" written by Hetland from Apress. I enjoyed it a lot. I also liked reading "Dive into Python" (also from Apress) for those who already know a language. A free edition is at diveintopython.org. -- http://mail.python.org/mailman/listinfo/python-list

PIL image.filter -> boundaries

2007-11-29 Thread [EMAIL PROTECTED]
Hi, I'm filtering an image with a custom kernel. It works fine, except for the boundaries. image.filter() seems to add a 1px zero-border to the image to process the pixels at the boundaries of the image.I'd rather have it replicate the values of the boundary pixels. Is this an option and where can

Crackly sound in pygame

2007-11-29 Thread [EMAIL PROTECTED]
Hey guys I am running Windows XP and am having an issue with a game that my team has created. Whenever an audio file is played it creates a very distorted, crackly sound. Any ideas what could be the issue? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Witch editor to use!

2007-11-30 Thread [EMAIL PROTECTED]
Try the free komodo edit. it works on both windows, Linux and Mac OS X http://www.activestate.com/Products/komodo_edit/ It is what is drawing me away from the kde editor "kate" and I will close my message with a linke to the features list http://www.activestate.com/Products/komodo_edit/features

Re: Error: UnboundLocalError: local variable 'PfFlag' referenced before assignment

2007-12-01 Thread [EMAIL PROTECTED]
Calvin wrote: > On Nov 30, 3:07 pm, "Wang, Harry" <[EMAIL PROTECTED]> wrote: > > $$ TestCase ID : 001 > > Step : deleteDvc,206268 > > Result Eval type : XmlChk > > Step : deleteDvc,206269 > > Result Eval type : XmlChk > > Traceback (most

Re: Check if a symlink is broken or circular

2007-12-01 Thread [EMAIL PROTECTED]
Giampaolo Rodola' wrote: > On 1 Dic, 00:10, "Martin v. L�wis" <[EMAIL PROTECTED]> wrote: > > > I would like to know if such function would be correct for verifying > > > if a link is broken and/or circular. > > > > > def isvalidlink(p

my first screen scraper

2007-12-01 Thread [EMAIL PROTECTED]
## I was looking in my database of movie grosses I regulary copy ## from the Internet Movie Database and noticed I was _only_ 120 ## weeks behind in my updates. ## ## Ouch. ## ## Copying a web page, pasting into a text file, running a perl ## script to convert it into a csv file and manually

Limit Guessing Algorithm

2007-12-02 Thread [EMAIL PROTECTED]
Hello hello, I'm looking for a piece of code, preferably in Python, that will do the following. It will accept a few data points (x,f(x)) of a function that converges to some finite value when x converges to infinity. I need the algorithm to guess what that limit is, to whatever precision it can.

Re: Limit Guessing Algorithm

2007-12-02 Thread [EMAIL PROTECTED]
On Dec 2, 10:53 pm, Roy Smith <[EMAIL PROTECTED]> wrote: > In article > <[EMAIL PROTECTED]>, > > > > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > Hello hello, > > > I'm looking for a piece of code, preferably in Python, that

Re: Limit Guessing Algorithm

2007-12-02 Thread [EMAIL PROTECTED]
On Dec 2, 11:50 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > > Look under "limits" in the table of contents. > > > I'm a third year math undergrad. You probably did not understand m

Re: Limit Guessing Algorithm

2007-12-02 Thread [EMAIL PROTECTED]
On Dec 3, 12:02 am, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > > I think I understood the question. It sounds like a numerical methods > > > homework problem. Basically you have f(x0), f(x1),

Re: Limit Guessing Algorithm

2007-12-02 Thread [EMAIL PROTECTED]
On Dec 3, 1:33 am, Roberto Bonvallet <[EMAIL PROTECTED]> wrote: > On Dec 2, 5:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > It will accept a few data points (x,f(x)) of a function > > that converges to some finite value when x converg

Re: Any idea how to open Matlab and run M-files by using Python?

2007-12-03 Thread [EMAIL PROTECTED]
pm, itcecsa <[EMAIL PROTECTED]> wrote: > Hi, > > I am implementing a small Python project, what I am going to do is to > open Matlab and run some M-files, and get some output from Matlab > command prompt. > > I have no idea how to open Matlab from Python! > > Any suggesti

Undefined Symbols while importing modules

2007-12-04 Thread [EMAIL PROTECTED]
Hi all, I have been learning to write Python extension modules, and am quite at a loss over a small glitch thats taking place. When I import my module I get the following exception >>> import pygsmd Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.5/site-packages/

Re: Any idea how to open Matlab and run M-files by using Python?

2007-12-04 Thread [EMAIL PROTECTED]
On Dec 3, 6:12 pm, sturlamolden <[EMAIL PROTECTED]> wrote: > On 3 Des, 05:02, itcecsa <[EMAIL PROTECTED]> wrote: > > > I am implementing a small Python project, what I am going to do is to > > open Matlab and run some M-files, and get some output from Matlab >

Re: Optimizing memory usage w/ HypterText package

2007-12-05 Thread [EMAIL PROTECTED]
On Dec 5, 1:35 pm, [EMAIL PROTECTED] wrote: > I've been using the HyperText module for a while now > (http://dustman.net/andy/python/HyperText/), and I really like it. > > I've run into a situation where I have code to construct a table > and while it is normally perfect,

Very beautiful girls and many useful resources and more, please check it out

2007-12-05 Thread [EMAIL PROTECTED]
Very beautiful girls and many useful resources and more,please check it out http://groups.google.com/group/all-good-things/web/beautiful-girls-and-ladies -- http://mail.python.org/mailman/listinfo/python-list

Re: Optimizing memory usage w/ HypterText package

2007-12-05 Thread [EMAIL PROTECTED]
On Dec 5, 2:13 pm, [EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Here's a hint: go look at comp.lang.python on Google Groups. > > Note that up in the right corner it says "Topics 1-30 of 98305". > > Why do you suppose th

Surfing Script

2007-12-06 Thread [EMAIL PROTECTED]
AJ Surfing is a fully functional surfing website with full administration controls. Users need no programming experience to change any site features. It is a complete web application developed using PHP with MYSQL as back-end. Full developer API allows for endless possibilities and use in your own

Re: Converting Excel time-format (hours since 1.1.1901)

2007-12-07 Thread [EMAIL PROTECTED]
On Dec 7, 7:20�am, Dirk Hagemann <[EMAIL PROTECTED]> wrote: > Hello, > > From a zone-file of a Microsoft Active Directory integrated DNS server > I get the date/time of the dynamic update entries in a format, which > is as far as I know the hours since january 1st 1901. You

Re: I'm missing something here with range vs. xrange

2007-12-07 Thread [EMAIL PROTECTED]
On Dec 7, 3:08 pm, "Joe Goldthwaite" <[EMAIL PROTECTED]> wrote: > Here's the simple benchmark; > > start = time.time() > for x in xrange(3): > for y in xrange(1000): > pass > print 'xRange %s' % (time.time()

Re: Converting Excel time-format (hours since 1.1.1901)

2007-12-07 Thread [EMAIL PROTECTED]
On Dec 7, 9:59 am, Dirk Hagemann <[EMAIL PROTECTED]> wrote: > On 7 Dez., 16:50, Dirk Hagemann <[EMAIL PROTECTED]> wrote: > > > > > > > On 7 Dez., 16:21, Tim Golden <[EMAIL PROTECTED]> wrote: > > > > [EMAIL PROTECTED] wrote: > > &g

Re: Converting Excel time-format (hours since 1.1.1901)

2007-12-09 Thread [EMAIL PROTECTED]
On Dec 9, 8:52�am, Dirk Hagemann <[EMAIL PROTECTED]> wrote: > On 7 Dez., 22:36, John Machin <[EMAIL PROTECTED]> wrote: > > > > > > > On Dec 8, 12:20 am, Dirk Hagemann <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > From a zone-

Job Offer: Python Ninja or Pirate!

2007-12-10 Thread [EMAIL PROTECTED]
Etsy is an online marketplace for buying and selling all things handmade: clothing, music, furniture, software, jewelry, robots. We launched on June 18, 2005, and ever since then have been empowering our users to make a living doing what they love most. Just a few months ago, we found a few amazin

Re: Converting Excel time-format (hours since 1.1.1901)

2007-12-10 Thread [EMAIL PROTECTED]
On Dec 10, 3:49 am, Dirk Hagemann <[EMAIL PROTECTED]> wrote: > On 9 Dez., 18:38, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > > > On Dec 9, 8:52�am, Dirk Hagemann <[EMAIL PROTECTED]> wrote: > > > > On 7 Dez., 22:36, Joh

Re: Is anyone happy with csv module?

2007-12-11 Thread [EMAIL PROTECTED]
On Dec 12, 10:49 am, "massimo s." <[EMAIL PROTECTED]> wrote: > > Accessing the data by columns *instead* of by rows would definitely > > not be appreciated by people who are using the csv module to read > > millions of lines of data. > > I don't want

Re: mimicking a file in memory

2007-12-12 Thread [EMAIL PROTECTED]
On Nov 20, 4:37 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Try with StringIO/cStringIO, these modules are supposed to give you > in-memoryobjects compatible with file object interface. I found this solution not working. I had similar problem: I wanted to write some string into th

how to maximize a Tkinter Window in python TK???

2007-12-12 Thread [EMAIL PROTECTED]
hello @ all, subj? -- http://mail.python.org/mailman/listinfo/python-list

Very beautiful girls and many useful resources and more, please check it out

2007-12-13 Thread [EMAIL PROTECTED]
Very beautiful girls and many useful resources and more,please check it out http://groups.google.com/group/all-good-things/web/beautiful-girls-and-ladies -- http://mail.python.org/mailman/listinfo/python-list

looking for gui for python code

2007-12-13 Thread [EMAIL PROTECTED]
hi i have written some python scripts which take command line arguments and do some job. i would like to make it into a .exe using py2exe and distribute it with innosetup.. befor that i would like to add some GUI support..i mean select some values using a folder explorer etc..which would be a good

Re: Is Python really a scripting language?

2007-12-14 Thread [EMAIL PROTECTED]
On Dec 11, 10:34 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "Ron Provost" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > But here's my problem, most of my coworkers, when they see my apps and > learn that they are written

Re: Is Python really a scripting language?

2007-12-14 Thread [EMAIL PROTECTED]
On Dec 14, 2:48 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > On Dec 14, 2007 2:09 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > On Dec 11, 10:34 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > > > "Ron Prov

embedding filedialog in a frame in tkinter

2007-12-14 Thread [EMAIL PROTECTED]
i am trying out tkinter to make a gui..i want to have a frame with an embedded file explorer next to a 'open directory' label..i tried out FileDialog and tkFileDialog methods but they open as pop up dialogs.. how do i make this packed into the frame the way button and other widgets can be packed?

Re: Convert a sequence of bits to a bit-string

2007-12-15 Thread [EMAIL PROTECTED]
On Dec 15, 8:33�am, [EMAIL PROTECTED] wrote: > Hi guys, > does anybody know how to convert a long > sequence of bits to a bit-string? I want to avoid this: > > >>> bit=0011010111011101011

Re: Convert a sequence of bits to a bit-string

2007-12-15 Thread [EMAIL PROTECTED]
On Dec 15, 10:39�am, [EMAIL PROTECTED] wrote: > First of all I'd like to thank you all for your advices. Before I check all > your hints I want to clarify what I'm trying to do. The question says > "write a function that takes a sequence of bits as an input and return

Informations about hardware, computers, configurations...

2007-12-15 Thread [EMAIL PROTECTED]
http://comp-hardware.blogspot.com/ If you looking for computer hardware... -- http://mail.python.org/mailman/listinfo/python-list

Re: About Rational Number (PEP 239/PEP 240)

2007-12-15 Thread [EMAIL PROTECTED]
On Dec 15, 2:00 pm, Lie <[EMAIL PROTECTED]> wrote: > I'm very surprised actually, to see that Python rejected the use of > fractional/rational numbers. However, when I read the PEP, I know > exactly why the proposal was rejected: People compared fractions with > integers,

Immutable Geometry Types

2007-12-16 Thread [EMAIL PROTECTED]
Hi, I am learning python, having learnt most of my object orientation with java, and decided to port some of my geometry classes over. I haven't used immutability in python before, so thought this would be an interesting chance to learn. I am looking for feedback on any ways in which I might have

Python dummy interpreter

2007-12-16 Thread [EMAIL PROTECTED]
Hi all, I remember a tool which (basically) creates a directory somewhere in the user's home directory and puts a copy (or perhaps link to) the python interpreter, adding that directory to the search path. In this way, it is possible for a user without root permissions to install additional packag

Re: Python dummy interpreter

2007-12-16 Thread [EMAIL PROTECTED]
On Dec 17, 2:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: Never mind, I found it. Virtualpython, docs available under easy install. -T > Hi all, > > I remember a tool which (basically) creates a directory somewhere in > the user's home directory and put

Re: in-client web server

2007-12-17 Thread [EMAIL PROTECTED]
I've done something reasonably similar using CherryPy as the webserver. The main application I wrote stored data in a sqlite3 database. A separate thread then ran the CherryPy server process. Each web browser call is mapped (by CherryPy) to a class method which dealt with connecting to the sqlite

New+old-style multiple inheritance

2007-12-18 Thread [EMAIL PROTECTED]
We are trying to monkey-patch a third-party library that mixes new and old-style classes with multiple inheritance. In so doing we have uncovered some unexpected behaviour: class Foo: pass class Bar(object): pass class Baz(Foo,Bar): pass # Monkey-patch Foo to add a special method

Re: embedding filedialog in a frame in tkinter

2007-12-18 Thread [EMAIL PROTECTED]
> Try using Tix, a Tkinter extension included in the Python library. It > provides a DirList widget: > thanx Gabriel.. -- http://mail.python.org/mailman/listinfo/python-list

clearing text on canvas

2007-12-18 Thread [EMAIL PROTECTED]
hi i am new to tkinter and would like some help with canvas i am doing validation of contents of a folder and need to show the ok/error messages on a canvas resultdisplay =Canvas(...) errmessage="error!" okmessage="dir validation ok!" if dirvalidate is False: resultdisplay.create_text(1,50,an

Re: New+old-style multiple inheritance

2007-12-18 Thread [EMAIL PROTECTED]
On Dec 18, 8:25 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > On Dec 18, 2:09 pm, Jonathan Gardner > > > > <[EMAIL PROTECTED]> wrote: > > On Dec 18, 7:08 am, "[EMAIL PROTECTED]" > > > <[EMAIL PROTECTED]> wrote: > > > We are trying

Re: New+old-style multiple inheritance

2007-12-18 Thread [EMAIL PROTECTED]
40 pm, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > On 18 dic, 12:08, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > We are trying to monkey-patch a third-party library that mixes new and > > old-style classes with multiple inheritan

integer subclass range behavior

2007-12-19 Thread [EMAIL PROTECTED]
I was wondering what would happen, so I tried this out for the heck of it with: Python 3.0a2 (py3k:59572M, Dec 19 2007, 15:54:07) [MSC v.1500 32 bit (Intel)] on win32 class a(int): def __new__(cls,number): return int.__new__(cls,number) for x in range(0,a(5)): print(x) Which resulted in

Re: Is there a simple way to parse this string ?

2007-12-19 Thread [EMAIL PROTECTED]
Stef, You can quickly get a tuple via: t = eval('(0, 0, 0, 255), (192, 192, 192, 255), True, 8') Joseph Armbruster On Dec 19, 4:17 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > hello, > > I need to translate the following string > a = '(0, 0, 0, 25

Re: integer subclass range behavior

2007-12-19 Thread [EMAIL PROTECTED]
On Dec 19, 7:42 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 19 Dec 2007 18:11:49 -0300, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> escribió: > > > > > I was wondering what would happen, so I tried this out for the heck of > > it with:

Re: .NET and Python Integration Problem and PDF Library (Need Help and Suggestions)

2007-12-20 Thread [EMAIL PROTECTED]
On Dec 18, 7:34 am, "Ravi Kumar" <[EMAIL PROTECTED]> wrote: > Hi. > First I am explaining the Problem so it would not get messed up. :) > > == PROBLEM > I have to integrate a small part in .NET Projects. .NET project is > actual

Re: clearing text on canvas

2007-12-20 Thread [EMAIL PROTECTED]
thanx a lot Peter dn -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a simple way to parse this string ?

2007-12-20 Thread [EMAIL PROTECTED]
Stef, For clarification, there is nothing hazardous about using eval on the string that you presented. t = eval('(0, 0, 0, 255), (192, 192, 192, 255), True, 8') Whether or not this is the "simplest" solution, remains a question. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to handle multi-line quotes

2007-12-21 Thread [EMAIL PROTECTED]
On 21 Dic, 22:13, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] a écrit : > > > Thinking about unclosed multi-line quotes. > > > When you open a multi-line quote (type '"""') what does your editor > > do? > > T

disabling button

2007-12-22 Thread [EMAIL PROTECTED]
using tkinter i created a gui and put a button on the frame class mygui: def __init__(self, parent): ... self.okButton = Button(self.btnFrame) self.okButton.configure(width=somewdth,text="OK", anchor=W,disabledforeground="tan") self.okButton.bind("",s

Re: disabling button

2007-12-22 Thread [EMAIL PROTECTED]
an explicit call to "update_idletasks" will clear out the > task queue for you. > it worked Thanks F.L!! dn -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a simple way to parse this string ?

2007-12-22 Thread [EMAIL PROTECTED]
Steven D'Aprano, On Dec 21, 2:08 am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Thu, 20 Dec 2007 20:27:23 -0800, [EMAIL PROTECTED] wrote: > > Stef, > > > For clarification, there is nothing hazardous about using eval on the > > string that you present

gtk.TreeView cell inconsistent state

2007-12-22 Thread [EMAIL PROTECTED]
In the below code setting cell to inconsistent sets entire column inconsistent (renderer).However, I need a third state off | on | inconsistent . How can I change one path->cell? Any help appreciated. Thanks john # get current value fixed = model.get_value(iter, MARK_FOR_COL

Re: Modify arguments between __new__ and __init__

2007-12-22 Thread [EMAIL PROTECTED]
On Dec 22, 11:03 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > When you call a new-style class, the __new__ method is called with the > user-supplied arguments, followed by the __init__ method with the same > arguments. > Only if __new__ returns an ob

clearing selection in Tix.FileSelectBox

2007-12-23 Thread [EMAIL PROTECTED]
hello i am creating a Tix.FileSelectBox to select some jpeg files on clicking an OK button i wish to get the selected imagename as string ,so i code like below class TixGUI: def __init__(self, parent): self.imgsel=FileSelectBox(self.bgframe) self.i

Re: Happy Christmas Pythoneers

2007-12-24 Thread [EMAIL PROTECTED]
On Dec 24, 12:17�am, Paddy <[EMAIL PROTECTED]> wrote: > After quite enjoying participating in the group in 2007, I'd like to > wish you all a Merry Xmas. > > - Paddy. Shouldn't that be 0Xmas? -- http://mail.python.org/mailman/listinfo/python-list

Pexpect and a Linux Terminal

2007-12-24 Thread [EMAIL PROTECTED]
hello, I'm new in Python and i would like to use Pexpect to execute a root command (i want to mount via a Pyhton script a drive) so that's my script for the moment : from os import * import pexpect import os cmd1="su -" cmd2="mount -o loop /home/user/my.iso /mnt/disk" pwd="mypassword" child = p

Re: Pexpect and a Linux Terminal

2007-12-25 Thread [EMAIL PROTECTED]
Yes it's work ! :-D I use prompt = '.*#' to detect the prompt expect. Thank you for you'r help ! Vive Python et TK :-D -- http://mail.python.org/mailman/listinfo/python-list

Re: Pexpect and a Linux Terminal

2007-12-25 Thread [EMAIL PROTECTED]
On 25 déc, 09:41, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Yes it's work ! :-D > > I use prompt = '.*#' to detect the prompt expect. Thank you for you'r > help ! > > Vive Python et TK :-D I have another probleme, not directly fro

Re: Pexpect and a Linux Terminal

2007-12-25 Thread [EMAIL PROTECTED]
On 25 déc, 10:14, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 25 déc, 09:41, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Yes it's work ! :-D > > > I use prompt = '.*#' to detect the prompt expect. Thank you

Re: Pexpect and a Linux Terminal

2007-12-25 Thread [EMAIL PROTECTED]
On 25 déc, 10:14, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 25 déc, 09:41, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Yes it's work ! :-D > > > I use prompt = '.*#' to detect the prompt expect. Thank you

Game Development

2007-12-26 Thread [EMAIL PROTECTED]
We at AJ Aquare are engaged in design and development of PC-based, online and mobile games. Our Game designers are passionate towards creating games that people long to have. Our designs can drive millions of players to your site. Sources: http://www.ajsquare.com/games/game_design.php?game=design

Re: Pexpect and a Linux Terminal

2007-12-26 Thread [EMAIL PROTECTED]
On 25 déc, 15:49, [EMAIL PROTECTED] wrote: > On Dec 25, 8:42 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > On 25 déc, 10:14, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > On 25 déc, 09:41, "[EMAIL P

EUROMEDIA 2008, April 9-11, 2008, FEUP-University of Porto, Portugal - 2nd Call for Papers

2007-12-26 Thread [EMAIL PROTECTED]
University, USA D-TV Workshop Dr. Hans-Joachim Nern, TTVI, Germany CORRESPONDENCE ADDRESS Philippe Geril Ghent University Faculty of Engineering Dept. of Industrial Management Technologiepark 803 B-9062 Ghent-Zwijnaarde, Belgium Tel: +32 9 2645509 Fax: + 32 9 2645824 Email: [EMAIL PROTECTED]

How protect proprietary Python code? (bytecode obfuscation?, what better?)

2006-04-17 Thread [EMAIL PROTECTED]
How can a proprietary software developer protect their Python code? People often ask me about obfuscating Python bytecode. They don't want people to easily decompile their proprietary Python app. I suppose another idea is to rewrite entire Python app in C if compiled C code is harder to decompile

Re: How do I use Code Context under Options in IDLE?

2006-04-17 Thread [EMAIL PROTECTED]
Phoe6 wrote: > Hi all, >I have this Code Context feature under Options in the IDLE. > How should I use it? Are there folks here who use it regularly and find > it useful. > Please guide me. Well, you could start by looking at the Help: Options Menu: Configure IDLE -- Open a configura

Re-creating a Tkinter mainloop()

2006-04-17 Thread [EMAIL PROTECTED]
Hi, I am trying to run a Tkinter application in a thread and it works pretty well to an extent. However, when I try to recreate the application after the thread exits, the new application never shows up. The code below the message explains what I am trying. On running this, you should see a simpl

Telnet Server Lib

2006-04-18 Thread [EMAIL PROTECTED]
I have been working on a project for some time now, that has various types of admistrating including a CGI web interface, In a previous version I implemented a Psuedo-Telnet Server if you will, bassicly all it did was print text to the client, and expect back data, it did not work with any of the p

extracting a substring

2006-04-18 Thread [EMAIL PROTECTED]
Hi, I have a bunch of strings like a53bc_531.txt a53bc_2285.txt ... a53bc_359.txt and I want to extract the numbers 531, 2285, ...,359. One thing for sure is that these numbers are the ONLY part that is changing; all the other characters are always fixed. I know I should use regular expressions,

Quick Problem

2006-04-18 Thread [EMAIL PROTECTED]
I am learning how to program and I only started about a month ago so the answer to this is probably quite obvious. I'm running accross a problem when writing a rock, paper, scissor program. Although I can write such program in 5 minutes I want to write a program into which I will implement many oth

Re: Quick Problem

2006-04-18 Thread [EMAIL PROTECTED]
Thank you. That worked perfectly, I understand why it was not working before because the variables were assigned within the function definition only. And replying to John Machin, admin is the name of the account I created on windows. The default administrator account in XP is called simply 'adminis

local greediness ???

2006-04-18 Thread [EMAIL PROTECTED]
hi, all. I need to process a file with the following format: $ cat sample [(some text)2.3(more text)4.5(more text here)] [(aa bb ccc)-1.2(kdk)12.0(xxxyyy)] [(xxx)11.0(bbb\))8.9(end here)] ... my goal here is for each line, extract every '(.*)' (including the round brackets, put them in a list,

Re: Telnet Server Lib

2006-04-19 Thread [EMAIL PROTECTED]
Does anybody have any ideas? -- http://mail.python.org/mailman/listinfo/python-list

items in an array

2006-04-19 Thread [EMAIL PROTECTED]
Hi All - I am working on a project in which I generate an array of values (list_array). I need to use the values in this array to create list similar to the one below: list_array = [] list = item1,item2,itemN... I am having difficulty in getting the values out of the original array. I have

C API - Conversions from PyInt or PyFloat to a char *

2006-04-19 Thread [EMAIL PROTECTED]
Hi, I'm looking at the C API and wanting to know a good way to convert Python numeric types to native c types. For strings I've been using PyString_AsString(v) and thats great, but I would like to do the same for ints and floats. I have found PyFloat_AsString in the source but it seems to be un

Re: Java Developer Exploring Python

2006-04-19 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > Is Python actively developed and supported on Linux? Yes. In fact, Red Hat's installation and administration tools are written in Python and have been for a decade (give or take a year or two). -- http://mail.python.org/mailman/listinfo/python-list

Re: C API - Conversions from PyInt or PyFloat to a char *

2006-04-19 Thread [EMAIL PROTECTED]
Thanks for the reply, This is the approach I have taken. Convert to a c numeric and take it from there. Is there movment to add functions like PyInt_AsString ? I noticed it mentioned in response to a PEP... thanks, ~jason -- http://mail.python.org/mailman/listinfo/python-list

Re: charting

2006-04-20 Thread [EMAIL PROTECTED]
I have used matplotlib along with numpy numerics etc for some analysis. Just home projects, but I have found python a much faster/better language for such development than Java. That being said, i have found the network aspects of other apps i've written to be much easier/faster in java. This co

Re: Python IDE for linux

2006-04-20 Thread [EMAIL PROTECTED]
my $.03 I'm a tool freak - not just development, in general. Also from a Java background. PyDev plugin on Eclipse is the bomb, as far as I am concerned. There was also a TruStudio plugin for eclipse that was a bit more ambitious, but I've used it since early milestones through to the current re

Re: Python IDE for linux

2006-04-20 Thread [EMAIL PROTECTED]
when I said " It's package management is the best " I mean't ISN'T the best oops -- http://mail.python.org/mailman/listinfo/python-list

Re: threading, how to?

2006-04-21 Thread [EMAIL PROTECTED]
Here's a recipe I used a lot: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65448 -- http://mail.python.org/mailman/listinfo/python-list

Re: how to append to a list twice?

2006-04-21 Thread [EMAIL PROTECTED]
Not sure if this is simpler or better, but here's a way to do it with a generator: value = 100 count = 0 def valueGen(): global value global count while(value >= 0): if(value == 100): yield value value -= 1 else: if(count & 1):

Re: howto py2exe/py2app for self updating application

2006-04-22 Thread [EMAIL PROTECTED]
of course! your can be carefully if you do it. but why you ask some here ? in http://www.python.org completly a module for your problem look and try again! [roRoNoaZoro] -- http://mail.python.org/mailman/listinfo/python-list

<    33   34   35   36   37   38   39   40   41   42   >