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 -
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
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):
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
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
> 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
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
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
sweet that works great!
thanks again for all the help.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
> > 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
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(
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
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"), _
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
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
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
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('&
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
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
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
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
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
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
>
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
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
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
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
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
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
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
Well that definitly works, thanks. Is there any way to keep the themes
though?
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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,
39 matches
Mail list logo