Re: [Tutor] an alternative to shutil.move()?

2006-10-16 Thread Alfonso
Chris Lasher escribió: How about os.rename http://docs.python.org/lib/os-file-dir.html On 10/15/06, Alfonso [EMAIL PROTECTED] wrote: Is there an alternative in python to use shutil.move()? That's exactly what I was looking for. Thank you very much. Don't know how I didn't find it before. I

[Tutor] executing with double click on linux

2006-10-15 Thread Alfonso
Thank you for your answer, Jonathon. I have found that the problem ocurs only with programs that make use of glade files for the interface. With pure pygtk programs without using glade files, making a launcher with a simple double click works perfectly. But if the program builds his interface

[Tutor] an alternative to shutil.move()?

2006-10-15 Thread Alfonso
Is there an alternative in python to use shutil.move()? It copies the files and then removes the source file insted of just moving directly the file (don't know much about file systems, but I suppose that when you move using the shell, if both source and destination are in the same partition,

Re: [Tutor] executing with double click on linux

2006-10-13 Thread Alfonso
Jonathon Sisson escribió: Alfonso wrote: Sorry for the too obvious question. I'm new to python and have no idea how can I make execute a compiled .pyc with a double click in linux, with gnome. Trying to double click in a .py gives allways the question wether I want to execute the text

[Tutor] executing with double click on linux

2006-10-11 Thread Alfonso
Sorry for the too obvious question. I'm new to python and have no idea how can I make execute a compiled .pyc with a double click in linux, with gnome. Trying to double click in a .py gives allways the question wether I want to execute the text file, or read it. (This behaviour can be changed

[Tutor] not such file or directory exception

2006-10-11 Thread Alfonso
Trying to copy or move files -I do it with move or copyfile- between directories, with characters of the spanish language gives me this error: not such file or directory. I suppose this is related with unicode, any idea how can I handle it? Thank you very much, in advance. (My system is in

[Tutor] problems with python and glade

2006-06-10 Thread Alfonso
Hi, I'm trying to learn to use python with glade. As start I have tried to run a program from a tutorial, but when I run it I become this exception: class GladeXML(_gtk.GtkData): AttributeError: 'module' object has no attribute 'GtkData' This ist the program: import pygtk pygtk.require('2.0')

Re: [Tutor] web intefaces?

2006-05-09 Thread Alfonso
, or something. HTH Best of Luck. On 5/6/06, Alfonso [EMAIL PROTECTED] wrote: I would like to experiment with web interfaces and python. After some googling, I'm quite confused, does somebody know of a good link about this topic / what do you think that is the best software option to design web

Re: [Tutor] web intefaces?

2006-05-09 Thread Alfonso
, or something. HTH Best of Luck. On 5/6/06, Alfonso _ [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]_ wrote: I would like to experiment with web interfaces and python. After some googling, I'm quite confused, does somebody know of a good link about this topic / what do you think that is the best

[Tutor] printing the links of a page (regular expressions)

2006-05-06 Thread Alfonso
I'm writing a script to retrieve and print some links of a page. These links begin wiht /dog/, so I use a regular expresion to try to find them. The problem is that the script only retrieves a link per line in the page. I mean, if the line hat several links, the script only reports the first.

Re: [Tutor] printing the links of a page (regular expressions)

2006-05-06 Thread Alfonso
Kent Johnson wrote: Alfonso wrote: I'm writing a script to retrieve and print some links of a page. These links begin wiht /dog/, so I use a regular expresion to try to find them. The problem is that the script only retrieves a link per line in the page. I mean, if the line hat several

[Tutor] web intefaces?

2006-05-06 Thread Alfonso
I would like to experiment with web interfaces and python. After some googling, I'm quite confused, does somebody know of a good link about this topic / what do you think that is the best software option to design web user intefaces with python? I mean web interfaces for common programms (so

[Tutor] UI developing

2006-05-04 Thread Alfonso
Hi, I'm starting with python on linux. I would like to make gtk user interfaces. Wich is the best option to do that? gtk-bindings, glade? If I want to port a program with gtk interface to windows, what should I use? Thank you very much for your attention.

[Tutor] copying files and regular expressions

2006-05-01 Thread Alfonso
I'm totally new to python. I would like to know, how can I copy files using regular expressions (the equivalent in python to unix cp /home/mycount/*partialname* /home/mycount/directory/). __ LLama Gratis a cualquier PC del Mundo.