Play AVI files as cut-scene... in BGE - HOW?

2008-09-01 Thread jmdeschamps
Blender Game Engine does not seem able to just play an AVI clip file... I want to play these files as cut-scenes in a game - subprocess it to the OS, and continue on return seems a good solution - but so sorry, it's been a while since I've delved in such places... I need a refresher. Must be plat

Re: Problem getting a file pathname with tkFileDialog

2006-11-09 Thread jmdeschamps
Tim Daneliuk wrote: > Sefyroth wrote: > > Thanks, > > > > but I get this error when I try this. > > > > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in > > position 12: ordinal not in range(128) > > > > I had encountered it with the askdirectory method as well. Is there an > >

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-20 Thread jmdeschamps
Kevin Walzer wrote: > I'm a Tcl/Tk developer who has been working, slowly, at learning Python, > in part because Python has better support for certain kinds of > applications that I want to develop than Tcl/Tk does. Naturally, I > thought that I would use Tkinter as the GUI for these programs. How

Re: Any idea how to do this in Python?

2006-10-17 Thread jmdeschamps
Lad wrote: > Dennis, > Thank you for your reply > You say: > >Pretend you are the computer/application/etc. How would YOU > > perform such a ranking? > That is what I do not know , how to perform such ranking. > Do you have any idea? > > Regards, > Lad. take a piece of paper to *play* the use-cas

Re: A friendlier, sugarier lambda -- a proposal for Ruby-like blocks in python

2006-10-16 Thread jmdeschamps
Bruno Desthuilliers wrote: > Kay Schluehr wrote: > > Bruno Desthuilliers wrote: > > > >> Just for the record : Ruby's code-blocks (closures, really) come from > >> Smalltalk, which is still the OneTrueObjectLanguage(tm). > > > > IsTheOneTrueObjectLanguage(tm)ReallyCamelCased? > > > ThatsAGoodQuest

Re: IDE

2006-10-13 Thread jmdeschamps
Jan Bakuwel wrote: > John Purser wrote: > > On Fri, 2006-10-13 at 15:48 +, giuseppe wrote: > >> What is the better IDE software for python programming? > >> > >> many thanks > >> > >> joe > > > > Joe, > > > > Find the best Python programmer and ask him/her. > > > > John Purser > > I may be the

Re: Raw beginner....

2006-10-08 Thread jmdeschamps
Fabio Zadrozny wrote: > On 10/8/06, Colin Lehmann <[EMAIL PROTECTED]> wrote: > > I am new to Python although I have been using Delphi since version one, > > I have been employed as a C and C++ programmer so when I went to Linux > > (Ubuntu 5.10) I thought Python looked pretty good. > > I downloade

Re: Dive Into Java?

2006-10-08 Thread jmdeschamps
erikcw wrote: > DiveIntoPython.org was the first book I read on python, and I really > got a lot out of it. I need to start learning Java (to maintain a > project I've inherited), and was wondering if anyone knew of any > similar books for Java? > > Maybe once I know my way around the language, I

Re: filling a frame with a widget

2006-10-04 Thread jmdeschamps
Fredrik Lundh wrote: > Paolo Pantaleo wrote: > > >I have this code > > > > from Tkinter import * > > > > root=Tk() > > Button(root).pack(fill=BOTH) > > root.mainloop() > > > > I would expect the button filling all the client draw area of the > > Frame, but when I resize the root window the button

Re: Tk: filling a frame with a widget

2006-10-04 Thread jmdeschamps
Paolo Pantaleo wrote: > I have this code > > from Tkinter import * > > root=Tk() > Button(root).pack(fill=BOTH) > root.mainloop() > > I would expect the button filling all the client draw area of the > Frame, but when I resize the root window the button becomes wider, but > not higher ( I get some

Re: does anybody earn a living programming in python?

2006-10-01 Thread jmdeschamps
Alex Martelli wrote: > Magnus Lycka <[EMAIL PROTECTED]> wrote: >... > > stuff in the world, so my standard extrapolation technique would yield > > 3 python programmers globally. > > I think this estimate is low, based on three piece of data I know (but, > sorry, are all confidential;-) and

Re: storing variable names in a list before they are used?

2006-09-29 Thread jmdeschamps
John Salerno wrote: > If I want to have a list like this: > > [(first_name, 'First Name:'), (last_name, 'Last Name:').] > > where the first part of each tuple is a variable name and the second > part is a label for the user to see, such as a form like this: > > First Name: > Last Name

Re: windev vs python SOS

2006-09-29 Thread jmdeschamps
Bruno Desthuilliers wrote: > [EMAIL PROTECTED] wrote: > > Hi, > > > > Bruno Desthuilliers a écrit : > >> I've never met a programmer that "loved" Windev. > > > > I have met some here (I'm the guy with a mustache-just kidding but > > actually I was there). > > > > http://www.pcsoft.fr/pcsoft/tdftec

Re: windev vs python SOS

2006-09-28 Thread jmdeschamps
MC wrote: > Bonjour ! > > Comme tu es français, tu me coprendras. > > Alors : > - windev est fermé, et protégé par des dongles. Résultat : dongle > perdu, en panne, ou volé, il faut racheter une licence (c'est arrivé à > un ami) > - le langage de windev est beaucoup moins évolué que Python. Et

Re: AN Intorduction to Tkinter

2006-09-27 Thread jmdeschamps
... > > If anybody has some really good sites with examples of Tkinter programs > and stuff, please share :) ... You should really pay attention to people's reply to your questions if you want help ;-) In this case meaning, that you should show what type of problem you are getting. Since the exa

Re: tkinter btn visual state with tkMessageBox

2006-08-20 Thread jmdeschamps
Hendrik van Rooyen wrote: > <[EMAIL PROTECTED]> Wrote: > | > | Hendrik van Rooyen wrote: > | > <[EMAIL PROTECTED]> wrote: > | > > | > To: > | > > | > > | > | why is the button sunken when called through a bind method, and not > | > | with the command attribute? > | > | Thank you! > | > | > | > |

Re: tkinter btn visual state with tkMessageBox

2006-08-19 Thread jmdeschamps
Hendrik van Rooyen wrote: > <[EMAIL PROTECTED]> wrote: > > To: > > > | why is the button sunken when called through a bind method, and not > | with the command attribute? > | Thank you! > | > | > | ## Cut'nPaste example > | from Tkinter import * > | import tkMessageBox > | > | class Vue(object):

tkinter btn visual state with tkMessageBox

2006-08-19 Thread jmdeschamps
why is the button sunken when called through a bind method, and not with the command attribute? Thank you! ## Cut'nPaste example from Tkinter import * import tkMessageBox class Vue(object): def __init__(self): self.root=Tk() self.root.title("test button visual state")

Re: Newbie doing lengthy initialization with Tkinter gui

2006-08-13 Thread jmdeschamps
Maric Michaud wrote: > Le dimanche 13 août 2006 12:39, Pasi Oja-Nisula a écrit : > > > The question is how (or where) can I call my loadImages function right > > after the mainloop starts? Or is there a better way to do this? > > > Seems a good use case for multi-thread, try something like this : >

Re: Trouble displaying image with tkinter

2006-08-06 Thread jmdeschamps
sj wrote: > I am just learning to use Tkinter and am having problems displaying image > files. I am able to display an image using tutorials (such as > http://www.daniweb.com/code/snippet296.html) But when I try my own code all > I get is an empty widget. What is wrong with the following program?

tkinter cursors name&display reference

2006-07-11 Thread jmdeschamps
I made a document on Tkinter cursors (mouse pointers?), pairing the cursor image with its name... Not a great deal of magic here since anyone can program something to see the different cursors on screen rather easily... BUT to have a printable reference can be nice :-) Would this be useful to anyo

Re: USB

2006-06-28 Thread jmdeschamps
Gabriel wrote: > ¿Alguien conoce algún módulo para python con el que se pueda tener > acceso a los puertos USB y que sea multiplataforma? > > -- > Gabriel Hola Gabriel, Voy... http://sourceforge.net/projects/pyusb (multiplataforma sin Windows) mas http://web.media.mit.edu/~dmerrill/sensor_network

Re: Newbie Question

2006-06-19 Thread jmdeschamps
Saint Malo wrote: > BTW my program isn't about red blue yellow etc. I'm just using it as > an example. I guess i didn't asked the question correctly or am not > expressing myself correctly. Let me try one more. > > Ok. > > Contents of text file follow: > > red blue purble > yellow blue green >

Re: Active Python versions

2006-06-19 Thread jmdeschamps
Tom Del Rosso wrote: > [EMAIL PROTECTED] <[EMAIL PROTECTED]> typed > in news://[EMAIL PROTECTED], > > > Maybe the OP is refering to PythonWin editor (as compared to IDLE) > > which is in ActiveState's release but not in the Python.org release... > > makes for a very different subject, and hopefull

Re: Newbie Question

2006-06-19 Thread jmdeschamps
placid wrote: > BartlebyScrivener wrote: > > Saint Malo wrote: > > > If the program searches for blue, i just want it to print blue > > > > Huh? Tell it to print whatever you want. > > > > for line in file: > > if 'blue' in line: > > print 'blue' > > > > for line in file: > > if 'br

Re: Active Python versions

2006-06-19 Thread jmdeschamps
Trent Mick wrote: > Tom Del Rosso wrote: > > Can I ask you about alternative environments? How do Active Python and IDLE > > from python.org compare? > > Both ActivePython and the Python installers from python.org install > IDLE. They should not differ at all (AFAIK). > > Trent > > -- > Trent Mic

Re: billionlaughs, on me :-(( - on winXP help!

2006-06-15 Thread jmdeschamps
Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > Looking up different blogs etc on xml parsers I wind up on the site of > > Computer stuff, www.razorvine.net. > > And in the browser torture section, the billionlaughs.xml link (that > > you shouldn't use if you don't know what your doing, as w

billionlaughs, on me :-(( - on winXP help!

2006-06-15 Thread jmdeschamps
Looking up different blogs etc on xml parsers I wind up on the site of Computer stuff, www.razorvine.net. And in the browser torture section, the billionlaughs.xml link (that you shouldn't use if you don't know what your doing, as was my case (mea culpa)) Thinking I was about to crash the browser,

found a swftools for 2.4 - Docs anyone?

2006-06-14 Thread jmdeschamps
New to swf - interesting technology for dynamic web graphic effects stemming from user input. I found a working windows pre-compiled binary (0.6.2) for Python 2.4 of rfxswf library from swftools to generate swf files. (flash compiled files(?)). No source of documentation of that api. There are

Re: GUI Program Error

2006-06-07 Thread jmdeschamps
Byte wrote: > Thanks, this works. Now, since the tutorial I was using is clearly > rubbish, any better ones? For a (relative) newbie please. Also, how do > I code a GUI Hello World program? > > -- /usr/bin/byte How does John Salerno previous code NOT fit the bill? >> John Salerno wrote: >> ...

Re: Best Python Editor

2006-05-31 Thread jmdeschamps
bruno at modulix wrote: > Manoj Kumar P wrote: > > Hi, > > > > Can anyone tell me a good python editor/IDE? > > It would be great if you can provide the download link also. > > I hate to be the one answering this, but this is *really* a FAQ - as you > would have known if you had google'd this group

Re: dynamic drawing in web page

2006-05-23 Thread jmdeschamps
barbaros wrote: > Hello everybody, > > I need to put some dynamic drawings on my web page. More precisely, I > need to draw a number of geometric figures (circles, rectangles) which > evolve into a graphics windows according to some law (a little bit like > the solar system). I need also to have se

still don't get unicode and xml - help!

2006-05-16 Thread jmdeschamps
I have to work with XML data containing accented characters (ISO-8859-1 encoding) Using ElementTree, the only way i found to get the text attribute of a node was to encode it individually, if you want. It doubles the amount of time to process :-( i surely doing this wrong... What is the good way to

Re: Newbie Help!

2006-02-05 Thread jmdeschamps
Alex Martelli wrote: > Stephen <[EMAIL PROTECTED]> wrote: > > > Hi All, > > im new to python i just have a few questions and was wondering if > > you could help me?? > > > > 1. what programming langaugue does python use? or which is most popular? > > Python _is_ a programming language, so

Re: Find directory name of file?

2006-01-29 Thread jmdeschamps
also the function os.cwd() ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Find directory name of file?

2006-01-29 Thread jmdeschamps
veracon wrote: > I'm pretty new at Python, so I have no idea how to do this: How do I > find the name of the directory that contains the application currently > being executed (e.g. if the file is /home/user/file.py, I want to get > the /home/user part)? > > Thanks! look into os.path module for

Re: An app without GUI

2006-01-10 Thread jmdeschamps
Daniel Crespo wrote: > Hello to all, > > I have to build a server app without GUI. This app must be an xml-rpc > server, so it has to be up all the time. I would control it through the > xml-rpc port from a web interface using php, sending parameters to > defined xml-rpc functions for running cert

Re: PythonWin: logging module not showing messages from imported modules

2006-01-06 Thread jmdeschamps
[EMAIL PROTECTED] wrote: > Having the following code: > > Module1.py > import logging > def X(): > logging.error('test') > > If I import it into PythonWin console and call X(), the error message > is not printed. If I do the same in Python console the message is > printed. Do I need to

Re: Quickest way to make py script Web accessible

2006-01-05 Thread jmdeschamps
[EMAIL PROTECTED] wrote: > I apologize for my inital ambiguity. > > Say I have a .py script that gets email addresses from a database and > then sends messages to customers (this is not spam, these guys _want_ > to get the emails). Historically, IT has executed the script when > someone in Marketi

Re: Quickest way to make py script Web accessible

2006-01-05 Thread jmdeschamps
[EMAIL PROTECTED] wrote: > What is the quickiest and easiest way to make a py script run on a Web > server? I have access to an Apache Web server running on Linux. > > I'm often asked to run some of my scripts on behalf of others. My hope > is to make a simple Web-based interface where people coul

Re: Tkinter Scrollbar not working

2006-01-03 Thread jmdeschamps
Dustan a écrit : > I'm trying to get a scrollbar bound with a Frame, and I keep on getting > a scrollbar, but it doesn't actually scroll. Some help, please? Frames are NOT scrollable objects for scrollbars in Tkinter: Listbox, Canvas and Text widget are. I f you want/need to scroll something el

Re: oop in python

2005-12-30 Thread jmdeschamps
(addendum) ... And even ... >>> eval("t").max() 12 >>> -- http://mail.python.org/mailman/listinfo/python-list

Re: oop in python

2005-12-30 Thread jmdeschamps
Larry Bates wrote: > novice wrote: > > hello over there! > > I have the following question: > > Suppose I created a class: class Point: > > pass > > then instanciated an instance: new = Point() > > So now how to get the insta

Bad people management (Was Herds of cats)

2005-12-23 Thread jmdeschamps
Alex Martelli wrote: > Mike Meyer <[EMAIL PROTECTED]> wrote: > > > Steve Holden <[EMAIL PROTECTED]> writes: > > > Alex Martelli wrote: > > >> Not a bad point at all, although perhaps not entirely congruent to > > >> open > > >> source: hiring key developers has always been a possibility (net of >

Re: Why and how "there is only one way to do something"?

2005-12-15 Thread jmdeschamps
Yes, a shared preferred way. And the same is true of many... Think Haskell, OCaml, Lua, Ruby, Lisp, Smalltalk, Java, C... They all have qualities of some sort, that appeal to some of us. Not all the same, nor to all of us. It's really a question of perspective. In this Python community, one shared

Re: Why and how "there is only one way to do something"?

2005-12-15 Thread jmdeschamps
Tolga wrote: > As far as I know, Perl is known as "there are many ways to do > something" and Python is known as "there is only one way". Could you > please explain this? How is this possible and is it *really* a good > concept? if you 'import this', you get a bit of Python Zen... from which I ha

Re: calculate system disk space

2005-12-09 Thread jmdeschamps
PyPK wrote: > how can we compute the current system disk space using a python > script.? > any ideas or have anyone tried this.. Google, on "Python disk size", returned this link: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66455 Thanks for the reply recipe, Steve ;-) Jean-Marc --

Re: Eclipse best/good or bad IDE for Python?

2005-12-07 Thread jmdeschamps
malv wrote: > This is probably a fair answer. > My experience: Two years ago I started with Boa till I discovered eric. > I have been with eric ever since. Eric uses Qt as GUI. I think both Qt > and wx enable you to do pretty much the same thing. I like the work > F.Lundh did on Tkinter, but every

Re: CGI and long running job

2005-12-03 Thread jmdeschamps
[EMAIL PROTECTED] wrote: > Hello, > I am using python and CGI to initiate a long running simulation (up to > 5h long) on a remote machine. The main idea is that I use a form, enter > the parameters and a CGI scripts start the simulation using these > parameters. The structure of the script is: > >

Re: How to get started in GUI Programming?

2005-11-25 Thread jmdeschamps
It all really depends on what you wish to achieve. Results are generally in proportion to the effort involved. I don't think a "Python for Nulls" exists ! the following thread deals with documentation for beginners (and others as well) http://groups.google.ca/group/comp.lang.python/browse_frm/threa

Re: Draw a triangle...

2005-11-24 Thread jmdeschamps
JustSomeGuy wrote: > Hi I'm writing a python application on my windows box and I want to draw > a simple triangle on the screen... How can I do this. > Am I going to have to use tcl/tk? Take a look at Tkinter, Python's wrapper around Tk - you'll find many things if you Google this! It's hard to t

Re: moving mouse?

2005-11-23 Thread jmdeschamps
dado wrote: > dado wrote: > > I'm implementing a "self-tutorial" into my app, > > and wondering if there's a way of moving a mouse > > cursor on command? probably using sys,os modules? > > I also figured this would be useful for making > 'remote desktop' kinda thing... Naturally, you can always i

Re: Tkinter from Vis. BASIC

2005-11-19 Thread jmdeschamps
Terrance N. Phillip wrote: > In VB, an easy way I indicate progress is something like > do while > lblNotify.foreground = randomcolor > lblNotify.refresh <--- > > loop > > I want to do the same thing in Python/Tkinter: > > #

Re: Hot to split string literals that will across two or more lines ?

2005-11-17 Thread jmdeschamps
Xiao Jianfeng wrote: > Hi, > > I need to print a long sting, which is two long so it must expand two > lines. > I know that we can use backslash(\) to explicitly join two lines into a > logical line, > but this doesn't work for string literals :( > > my code: >

Re: How to write an API for a Python application?

2005-11-16 Thread jmdeschamps
While not sure of the behavior you are trying to achieve, XML-RPC comes to mind. But it's based on HTTP protocol in which the client puts request to the server which has to respond. The server cannot initiate interactions. XML-RPC is both widely avalaible, and very easy to implement. NOTE: in ord

Re: Is Python worth it??

2005-11-15 Thread jmdeschamps
Simon Brunning wrote: > On 14/11/05, john boy <[EMAIL PROTECTED]> wrote: > > I have started out trying to learn Python for my first programming language. > > I am starting off with the book "how to think like a computer scientist." > > I spend about 4-5 hrs a day trying to learn this stuff. It i

Re: Recommendation please: forming an XML toolkit

2005-11-11 Thread jmdeschamps
I guess you're right... I think its just cold feet from the possibility of getting involved and discovering specific gotchas later. What I'm hearing you tell me is *go and play it*. Thanks for replying... -- http://mail.python.org/mailman/listinfo/python-list

Re: How to set program name in Python? ($0 in Perl)

2005-11-10 Thread jmdeschamps
This is not directly what the OP wanted in regards to Perl, but to see what one could do if one needed to change the name of the running program, I wrote this: ## START PROGRAM import sys import os.path import shutil import os def testChangingName(appname): hopedfornameis = appname mylongn

Recommendation please: forming an XML toolkit

2005-11-10 Thread jmdeschamps
I'm asking help on this topic of building a tools foundation for future XML projects because of the sheer volume of possibilities I will not have the time to check/try/test in detail. This question is a bit like the ones pertaining to 'Which web framework to use?', there is a lot of good stuff out

Re: Newb ??

2005-11-09 Thread jmdeschamps
## Here you always get 100... This is false , sorry for the wrong comment on this part, it should rather be: ## randrange is from start to end-1 the_number = random.randrange(1,101) JM (But the rest of my comment seems OK) -- http://mail.python.org/mailman/listinfo/python-list

Re: Newb ??

2005-11-08 Thread jmdeschamps
[EMAIL PROTECTED] wrote: > Chad Everett wrote: > > Hi all, I am new to the group. Trying to learn Python programming on my > > own. I am working through Michael Dawson's Book Python Programming for the > > absolute beginner. > > > > I am tring to write a program that is a number guessing game.

Re: Goto XY

2005-11-08 Thread jmdeschamps
Like David said above... ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Goto XY

2005-11-08 Thread jmdeschamps
Like David said below, you need to import WConio but then repemeber when you *import someLib* you have to use qualified names such as WConio.getkey() Example: import WConio s=WConio.getkey() if s == "right": WConio.gotoxy(10,10) WConio.putch("W") s=WConio.getch() -- http://mail.pytho

Re: Goto XY

2005-11-08 Thread jmdeschamps
WConio does this for Windows. See... getkey() and gotoxy() http://newcenturycomputers.net/projects/wconio.html -- http://mail.python.org/mailman/listinfo/python-list

Re: which feature of python do you like most?

2005-11-08 Thread jmdeschamps
James wrote: > Most of the responses are of the "Why Python is more pleasant than C++" > variety, but the original poster specifically said he had experience > with Perl. As such, arguments like "automatic memory management" don't > carry any weight. > > >From my experience as both a Perl and Pyt

Re: XML GUI

2005-11-08 Thread jmdeschamps
Brendan wrote: > py wrote: > > how about wxPython? I am interested in something that will look native > > on various operating systems (win, mac, *nix). > > > > any good tutorial on using wxPython with XML? > > The wxPython distribution comes with XRCed, which is a graphical > gui-builder that s

Re: Tkinter- Building a message box

2005-11-07 Thread jmdeschamps
Maybe this can help: http://effbot.org/zone/tkinter-dialog-windows.htm Good luck! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python doc problem example: gzip module (reprise)

2005-11-07 Thread jmdeschamps
(gulp! red-in-the-face) yes Steve, I meant "gist", sorry if I offended anyone, specially Fredrik since I was referring to the 'substance' of his post...certainly not as if it were a 'joke' . Jean-Marc -- http://mail.python.org/mailman/listinfo/python-list

Re: RAW_INPUT

2005-11-07 Thread jmdeschamps
The raw_input('Who Goes there?') function writes out the arg and then waits for *user input* , and that is considered terminated when you hit return. Since you only hit return without typing 'Josh' first you get an empty string "" which is then printed to screen... ('You may pass,'+"") Type somet

Re: how to present Python's OO feature in design?

2005-11-06 Thread jmdeschamps
Do you mean code-generators for Python from UML? If not, please give some hints in what OOP features you're interested in, because I can't see how use-case, class, instance (objects), package, sequence,( ... other ) diagram would differ in Python from Java from an OOP perspective? -- http://mail

Re: click event

2005-11-06 Thread jmdeschamps
I guess you mean draw lines from the laast coordinates to the new one? then add a few global variables: lastX="" lastY="" # and modify lastX="" lastY="" def click(event): global lastX, lastY if lastX != "": c.create_line(lastX,lastY,event.x,event.y,fill="white") lastX = event.x

Re: text widget example?

2005-11-06 Thread jmdeschamps
Well, in the 'give me a free example' type questions, I guess I'm a bit blue tonight, so here goes: ( no personal pun intended, just look up some recent post in this newsgroup...) # Start the example Python code to show some text file in a text widget from Tkinter import * # import Tkinter in __ma

Re: I need Motivation

2005-11-06 Thread jmdeschamps
And you know what? I almost sure most people on this newsgroup wouldn't feel maligned if somebody told them that's what happened to them. I'd put money that most pythonistas here would think 'Hey Great for you! good luck, and make these machines ever more useful and/or enjoyable for the rest of the

Re: Python doc problem example: gzip module (reprise)

2005-11-06 Thread jmdeschamps
Sorry but I take exception on this subject. I still think Fredrik's Intro to Tkinter is still more usable ... Grayson's book uses PMW extensively, and a lot is about specific widgets of that library. This actually brings us back to the jest of F. previous post, that documentation is question of mu

Re: Can Anyone Help me on this

2005-11-03 Thread jmdeschamps
... list2=list1[:] ... Yes, naturally, where was my head ?-)) -- http://mail.python.org/mailman/listinfo/python-list

Re: Can Anyone Help me on this

2005-11-03 Thread jmdeschamps
[EMAIL PROTECTED] wrote: > i m trying to reverse the order in which the > strings are stored in list > > then pop it into another list > > what m i doin worng?? > > here's the code: > > list1 = [] > list2 = [] > list1.extend('123456789') > > print list1 > > for a in list1: > list2 = list1.pop(

Re: how to associate files with application

2005-10-27 Thread jmdeschamps
Ashok wrote: > hi, > i want to know how to make a specific type of file open in an > application i developed in python when the user clicks on the file.(in > windows) for eg. a .txt file when clicked opens in notepad, a .doc file > when clicked opens in MS-word. In the same way i want to make a .x

Re: Newbie question

2005-10-25 Thread jmdeschamps
Geirr wrote: > Hi, ive just started playing around with python and wondered if someone > could poing me in the right way here. > > > I have a xmlrpc server simple script: > > Server script: > import SimpleXMLRPCServer > class tpo: > > def retTPOXML(): > theFile=open('tpo.xml')

Re: Simple server/client application

2005-10-24 Thread jmdeschamps
Simon Percivall wrote: > You're calling the grid() method on the Entry object you're > instanciating. Are you sure that the grid() method returns the Entry > object so that you're actually binding it to self.myAddress? The widget maker should do it in two steps instead of one. So instead of: sel

Re: Set operations for lists: pythonic hints please!

2005-10-20 Thread jmdeschamps
Ouppsss! the title should have read:Set operation for tuples... (sigh!) -- http://mail.python.org/mailman/listinfo/python-list

Set operations for lists: pythonic hints please!

2005-10-20 Thread jmdeschamps
Working with several thousand tagged items on a Tkinter Canvas, I want to change different configurations of objects having a certain group of tags. I've used the sets module, on the tuple returned by Tkinter.Canvas. find_withtag() method. Since this method takes only one tag at time, I use it fo

Re: Importing modules

2005-05-14 Thread jmdeschamps
CONTEXT: Trying to modularize (is this english?) application development : MVC style, team distributed so that a visual component can be in one module imported and used by the __main__, and connected (read packed) at runtime to other components coming from the main or other modules. PROBLEM: Afte

cx_Oracle failed to load DLL BUT versions correct

2005-02-09 Thread jmdeschamps
Hello Having cx_Oracle (an Oracle database connector for Python) used it here where I teach for the last couple of years, and finding it so easy to use (and install) I was taken aback when I got an error message telling me it could not load the DLL (complete message below) Third, I've read (on ac