Re: PyGTK vs. wxPython

2005-04-25 Thread Maciej Dziardziel
dcrespo wrote: > Hi all... > > I think wxPython is much better than PyGTK. First of all, PyGTK needs > the GTK runtime installed, whereas wxPython is entirely Python's > modules, so It facilitates the apps' distribution. As already mentioned, it is not true. You will still need GTK (on Linux, no

Re: delete will assure file is deleted?

2005-04-26 Thread Maciej Dziardziel
[EMAIL PROTECTED] wrote: > Hello, > > If I use os.remove(fileName), does it always assure that the code will > move to the next code only if the fileName is deleted completely? Yes, it will be deleted, but not necessary completly. Deleting isn't equal to erasing file's content, so it might be po

Re: Read / Write image file

2005-05-03 Thread Maciej Dziardziel
codecraig wrote: > I have a image file on my pc, say a .jpg. Basically I want to setup a > client/server socket, and I want the client to read in the jpg and send > it to the server, where the server can write that data into a new file > on the server. > > I tried just doing something like.. >

Re: distributing scripts

2005-05-03 Thread Maciej Dziardziel
Anand S Bisen wrote: > Hello, > > What is a good way to distributing python scripts as a package. Since > lately i am facing lots of issues with my python scripts not being able > to run properly due to either (old python 2.2 at the client machine) or > missing module. Is there a way by which i c

Re: Forcing a stack trace from the command line?

2005-10-13 Thread Maciej Dziardziel
Willie Walker wrote: > Any advice would be greatly appreciated. Perhaps strace will tell you something. -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fiedzia.prv.pl 'Not all who wander are lost.' - J.R.R. Tolkien, The Fellowship of the Ring -- http://mail.python

Re: Help with language, dev tool selection

2005-10-21 Thread Maciej Dziardziel
[EMAIL PROTECTED] wrote: > 1)What programming language to use This is trivial task, whatever language you choose, will do it. Python too, and its also simple and popular, so i can recommend it. > 2)What development tools to use You don't need nothing beyond python interpreter. > 3)

Re: subprocess exiting in an incomprehensible fashion

2005-10-21 Thread Maciej Dziardziel
Will wrote: > After the first number is input, the subprocess is exiting after the > first communicate. I do not understand why. As help(calc.communicate) says: Read data from stdout and stderr, until end-of-file is reached. Wait for process to _terminate_. > Any help would be much appreciated.

Re: tool for syntax coloring in html

2005-10-26 Thread Maciej Dziardziel
Xah Lee wrote: > in some online documentations, for examples: > > http://perldoc.perl.org/perlref.html > http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-17.html > http://www.haskell.org/hawiki/HaskellDemo > > the codes are syntax colored. > > Is there a tool that produce codes in ht

Re: Automatically creating a HOME environ variable on Windows?

2005-10-29 Thread Maciej Dziardziel
[EMAIL PROTECTED] wrote: > Cool, even better. So what's best, having code to add HOME > (=USERPROFILE) to os.environ, or change the various places that HOME is > used to check for USERPROFILE? Best solution would be to have portable function that returns user home directory and knows about all pl

Re: Automatically creating a HOME environ variable on Windows?

2005-10-31 Thread Maciej Dziardziel
Jorgen Grahn wrote: >> Best solution would be to have portable function that returns >> user home directory and knows about all platfom quirks. > > Why is that better than Python creating a HOME in os.environ, if it > doesn't > already exist? I can think of a few reasons it's better, and a few >

Re: Fork() and exec() dont work

2005-11-04 Thread Maciej Dziardziel
blahman ([EMAIL PROTECTED]) wrote: > i m using Windows XP, and by tomorrow i will have have fedora core > installed too. the problem is, when i use these "fork() and exec()" my > windows doesnt do anything, python gives an error about the module, > the kind of error when u know u r wrong. > > is

Re: Using Which Version of Linux

2005-11-05 Thread Maciej Dziardziel
blahman ([EMAIL PROTECTED]) wrote: > ok, i m going to use Linux for my Python Programs, mainly because i > need to see what will these fork() and exec() do. So, can anyone tell > me which flavour of linux i should use, some say that Debian is more > programmer friendly, or shold i use fedora, or S

Re: newbie question: convert a list to one string

2005-08-25 Thread Maciej Dziardziel
[EMAIL PROTECTED] wrote: > H! > > I'm searching for the fastest way to convert a list to one big string. > > For example: > test = ['test','test2','test3'] '-'.join(test) -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fiedzia.prv.pl Stewardesses is the longest w

Re: ezPyCrypto

2005-09-14 Thread Maciej Dziardziel
[EMAIL PROTECTED] wrote: > Hi!! > > I finally decided to use ezPyCrypto for my project but I can't download > it from http://www.freenet.org.nz/ezPyCrypto/ ... Check this link now, it works for me. -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fiedzia.prv.pl Con

Re: Emphasizing a gtk.Label

2006-09-25 Thread Maciej Dziardziel
ravenheart wrote: > I want to give some emphasis to a Label from gtk, without breaking gnome > theme (i.e. not changing colors, etc) > I think bolding it would be a good option (could be also underscoring > but don't like it at all). > What would be the best solution? How to do it? I have found ho

Re: python for flash drives

2006-08-29 Thread Maciej Dziardziel
Putty wrote: > Is there such a thing as a special version of python that I can run > more efficiently from a flash drive? google for movable python (or similar) -- Maciej "Fiedzia" Dziardziel ([EMAIL PROTECTED]) In the land of the blind, the one eyed man is king. -- http://mail.python.org/mai

Re: matplotlib

2006-09-14 Thread Maciej Dziardziel
[EMAIL PROTECTED] wrote: > Can somebody give some quick pointers to start off with matplotlib. > > Thanks http://matplotlib.sourceforge.net/tutorial.html -- Maciej "Fiedzia" Dziardziel ([EMAIL PROTECTED]) If you can read this, you are in phaser range. -- http://mail.python.org/mailman/listin