Re: cross platform distribution

2009-09-04 Thread ianaré
These are all good suggestions. I just wanted to add that you can distribute pre-built Linux packages for the most popular distros like one for RHEL/Centos/Fedora as RPM and one for Debian/Ubuntu as DEB. Any C code in them would be compiled. On Sep 4, 9:33 am, Philip Semanchuk wrote: > On Sep 4,

Re: sorting for recursive folder rename

2009-02-05 Thread ianaré
On Dec 16 2008, 7:36 pm, "Rhodri James" wrote: > On Tue, 16 Dec 2008 18:20:52 -, ianaré wrote: > > Hello all, > > > I trying to recursivelyrenamefolders and files, and am looking for > > some ideas on the best way of doing this. The problem is that the >

Re: sorting for recursive folder rename

2008-12-16 Thread ianaré
On Dec 16, 2:00 pm, MRAB wrote: > ianaré wrote: > > Hello all, > > > I trying to recursively rename folders and files, and am looking for > > some ideas on the best way of doing this. The problem is that the > > given list of items can be in order, and one to all ite

sorting for recursive folder rename

2008-12-16 Thread ianaré
Hello all, I trying to recursively rename folders and files, and am looking for some ideas on the best way of doing this. The problem is that the given list of items can be in order, and one to all items may be renamed. Here is some preliminary code I have, but which does not work very well. self

Re: Python plugin for Netbeans

2008-12-16 Thread ianaré
On Dec 15, 3:23 pm, a wrote: > Netbeans added a python plugin to its plugin repository. > Do you tried it? What do you think about this plugin? If you like netbeans already it's great to finally have python officially supported. I find netbeans to be easier to use than eclipse. -- http://mail.pyt

Re: ethical questions about global variables

2008-12-16 Thread ianaré
For anything more complicated than a simple script, I find it easier to use some sort of config object. This could be a simple dictionnary type class, where the values can be set/retrieved by the other classes directly, or a more elaborate class including functions to set/ retrieve the variables. T

Re: Copying files in directory

2008-12-16 Thread ianaré
On Dec 15, 9:49 pm, pacsciad...@gmail.com wrote: > I'm writing a project management system, and I need the ability to > accept a directory name and move its contents to another directory. > Can someone give me a code sample that will handle this? I can't find > any "copying" functions in os or os.p

Re: huge slowdown on append

2007-12-21 Thread ianaré
On Dec 21, 3:29 pm, "ianaré" <[EMAIL PROTECTED]> wrote: > Hey all, > > I have a for loop which included the line: > > items_ren.append(join(newPath,renamedItem)) > > I changed it to this: > items_ren.append([join(newPath,renamedItem), False]) > > And

Re: mac dashboad

2007-12-21 Thread ianaré
On Dec 21, 12:37 pm, Carl K <[EMAIL PROTECTED]> wrote: > How do I hang an app off the mac dashboard? > > The goal is a python version of Weatherbug. > > something like: > read xml data from a URL, > display some numbers, > mouse over shows more details > > Carl K What is the dashboard - is it anyt

Re: How to handle multi-line quotes

2007-12-21 Thread ianaré
On Dec 21, 2:15 pm, [EMAIL PROTECTED] wrote: > Thinking about unclosed multi-line quotes. > > When you open a multi-line quote (type '"""') what does your editor > do? Does it color the remainder of your text as a quote, or does it > color the line with the open quote as a quote and leave the rest

huge slowdown on append

2007-12-21 Thread ianaré
Hey all, I have a for loop which included the line: items_ren.append(join(newPath,renamedItem)) I changed it to this: items_ren.append([join(newPath,renamedItem), False]) And processing speed is now much much slower. For 5780 items the old function would take 9.5 seconds (there is other stuff g

Re: function call

2007-09-04 Thread ianaré
> > Every reasonable use case for this (and several unreasonable ones) > > that I've encountered (and some that I've just imagined) can be better > > addressed with a trace function (sys.set_trace) than by trying to do > > this at the point of call. > > Indeed. Thanks for the correction. > > > rel

function call

2007-09-04 Thread ianaré
Hey all, Is there a way of printing out how a function was called? In other words if I do the following: def someFunction(self): self.someOtherFunction(var1, var2) I would get something like "someOtherFunction: called by: someFunction, args are: var1, var2" Thanks in advance

Re: Colored text

2007-08-12 Thread ianaré
On Aug 13, 1:50 am, Rohan <[EMAIL PROTECTED]> wrote: > On Aug 12, 10:01 pm, ianaré <[EMAIL PROTECTED]> wrote: > > > On Aug 12, 10:05 pm, Rohan <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > Can some one tell me how do I get colored text. Say

wx.ListBox drag and drop

2007-08-12 Thread ianaré
Hey all, I see plenty of drag and drop examples but they are all for wx.ListCtrl. Anyone know of examples or tutorials for wx.ListBox? Specifically, I would like to be able to drag a selection from one ListBox to another. Thanks in advance, - ianaré -- http://mail.python.org/mailman/listinfo

Re: Colored text

2007-08-12 Thread ianaré
On Aug 12, 10:05 pm, Rohan <[EMAIL PROTECTED]> wrote: > Hello, > Can some one tell me how do I get colored text. Say when I want to > write something in a text file , how do I get it colored. Plain text files don't have color. You could output in html ... -- http://mail.python.org/mailman/listin

Re: real time updating of popen, bufsize=0 problems

2007-04-06 Thread ianaré
On Apr 6, 3:59 pm, Rob Wolfe <[EMAIL PROTECTED]> wrote: > "ianaré" <[EMAIL PROTECTED]> writes: > > hey all, I'm trying to get real time updates of batch file output. > > [...] > > > So I tried subprocess: > > proc = subprocess.Popen('&

Re: real time updating of popen, bufsize=0 problems

2007-04-06 Thread ianaré
On Apr 6, 3:22 pm, [EMAIL PROTECTED] wrote: > On Apr 6, 1:44 pm, "ianaré" <[EMAIL PROTECTED]> wrote: > > > > > hey all, I'm trying to get real time updates of batch file output. > > > Here is my batch file: > > @echo off > > echo 1

real time updating of popen, bufsize=0 problems

2007-04-06 Thread ianaré
hey all, I'm trying to get real time updates of batch file output. Here is my batch file: @echo off echo 1 @ping 127.0.0.1 -n 2 -w 1500 > nul echo 2 @ping 127.0.0.1 -n 2 -w 1500 > nul echo 3 If I run it in cmd.exe it will print "1", wait 15sec, print "2", wait 15sec, print "3". I tried doing it

only loading a language installed on system

2007-04-03 Thread ianaré
i'm doing this: mylocale = wx.Locale(wx.LANGUAGE_POLISH, wx.LOCALE_LOAD_DEFAULT) if not wx.Locale.IsOk(mylocale): mylocale = wx.Locale(wx.LANGUAGE_DEFAULT, wx.LOCALE_LOAD_DEFAULT) and getting this: Segmentation fault (core dumped) I'm trying to see if I can properly load a language. If the

Re: call to function by text variable

2007-03-25 Thread ianaré
On Mar 25, 7:01 pm, "ianaré" <[EMAIL PROTECTED]> wrote: > Cool now I can run it through the translator. > > ops = (_("Directory"), _("Replace"), _("ChangeCase"), >_("Move"), _("Swap"), _("Insert"), _

Re: call to function by text variable

2007-03-25 Thread ianaré
Cool now I can run it through the translator. ops = (_("Directory"), _("Replace"), _("ChangeCase"), _("Move"), _("Swap"), _("Insert"), _("ChangeLength")) self.operations.insert(pos, getattr(operations, ops[n]).Panel(self, main)) Thanks guys! -- http://mail.python.org/mailman/listinfo/p

call to function by text variable

2007-03-25 Thread ianaré
yeah the subject doesn't really make sense does it? anyway want I want to do is this: if n == 1: self.operations.insert(pos, operations.Replace.Panel(self, main)) elif n == 2: self.operations.insert(pos, operations.ChangeCase.Panel(self, main)) elif n == 3: self.operations.insert(

Re: weird error messages on application exit

2006-07-04 Thread ianaré
I tried downloading and installing from the fedora site and got this: gtk2-2.8.19-2.i386.rpm is already installed However, the problem seems to have gone away. Not sure what happened there. Thank you for the reply. gtk2-2.8.19-2.i386.rpm is already installed Frank Millman wrote: > ianaré wr

weird error messages on application exit

2006-07-04 Thread ianaré
Running FC5 with Gnome (rather minimal install), using latest wxPython version installed from wxPython.org RPMs since I needed unicode and FC5 only has ansi available in the package manager. Anyway the errors occur every time i close out of my wxPython application, and sometimes... maybe every 10 -

gettext errors with wxPython in linux

2006-05-17 Thread ianaré
given the foolowing code: import gettext gettext.install('messages', './locale', unicode=0) def __init__(self, parent): # initialise preferences self.prefs = self.getPrefs() # initialise language: language = self.prefs['language='] langdir = self.rea

Re: Unicode question : turn "José" into u"José"

2006-04-05 Thread ianaré
maybe a bit off topic, but how does one find the console's encoding from within python? -- http://mail.python.org/mailman/listinfo/python-list

wxPython problem with freeze.py

2006-04-05 Thread ianaré
I have a wxPython application that i can run no problem from source, now i want to freeze it for distribution. I tried the freeze.py script and got the following output: freezing Frame1 ... freezing UserDict ... freezing __main__ ... freezing codecs ... freezing copy ... freezing copy_reg ... fre

Re: suse linux 10 and wx.listctrl display issues

2006-03-13 Thread ianaré
Well that definitly works, thanks. Is there any way to keep the themes though? -- http://mail.python.org/mailman/listinfo/python-list

Re: suse linux 10 and wx.listctrl display issues

2006-03-07 Thread ianaré
hum finally did find some SuSE specific RPM's through yast by setting the media directory to mirros.kernel.org. Cool. But still the same thing happens... -- http://mail.python.org/mailman/listinfo/python-list

suse linux 10 and wx.listctrl display issues

2006-03-07 Thread ianaré
hey, Having some problems getting wxpython apps to look right on SuSE 10.0 and KDE 3.4. There are no RPMs that i could find so I built my own from source. First time using 'default' settings - GTK 2.x and unicode: rpmbuild -tb --define 'pyver 2.4' --define 'port gtk2' \ --define 'unicode 1' wxPyt

id3 encoding testing

2006-03-03 Thread ianaré
hey all, anybody know where i can download some mp3's and/or other file formats that use id3 tags in different encodings? working on an app that retrieves id3 info, and all the mp3's i have come across so far use iso-8859-1 encoding. i would like to test: 'Eastern Europe (iso-8859-2)' 'Cyrillic

Re: in need of some sorting help

2006-03-03 Thread ianaré
sweet that works great! thanks again for all the help. -- http://mail.python.org/mailman/listinfo/python-list

Re: in need of some sorting help

2006-03-02 Thread ianaré
arrrg i did it again, not enough explanation... new to asking for programing help online. anyway the reason is that the list can be rearanged later in the program by another function, and i need a way to put it in order again.. so yes it is doing some pretty funky stuff, lol. so although your metho

Re: string stripping issues

2006-03-02 Thread ianaré
from the python manual: strip( [chars]) The chars argument is not a prefix or suffix; rather, all combinations of its values are stripped: >>> 'www.example.com'.strip('cmowz.') 'example' in your case since the letter 'H' is in your [chars] and the name starts with an H it gets stripped, b

Re: wxPython memory footprint? - Re: Write a GUI for a python script?

2006-03-02 Thread ianaré
> What is the minimal memory footprint of a Hello World wxPython app > meanwhile (when you cx_freeze/py2exe it) it's kinda weird actually... I'm not 100% sure, but i think it relates more to py2exe options, not neccessarily to wxPython. in any case the least memory usage i've seen for an app that

Re: Write a GUI for a python script?

2006-03-02 Thread ianaré
wxPython is another good option, especially since there is boa-constructor, which is a great GUI builder, almost makes it too easy to make a nice looking app in no time at all. http://www.wxpython.org/download.php http://boa-constructor.sourceforge.net/ if you decide to give wxPython a go, make

Re: in need of some sorting help

2006-03-02 Thread ianaré
thank you for the help, i didn't know you could sort in place like that. definitly will come in handy. However, i need the sorting done after the walk, due to the way the application works... should have specified that, sorry. TIA -- http://mail.python.org/mailman/listinfo/python-list

in need of some sorting help

2006-03-01 Thread ianaré
Hey all, if i use a os.walk() to append files to a list like so... files = [] root = self.path.GetValue() # wx.TextCtrl input filter = self.fileType.GetValue().lower() # wx.TextCtrl input not_type = self.not_type.GetValue() # wx.CheckBox input for base, dirs, walk_files in os.walk(root):