Re: Segfault with tktreectrl on python-2.5 on linux

2007-01-16 Thread klappnase
Anton Hartl schrieb: > The bug report should go to both; I actually contacted Jeremy Hylton > as a main contributor of the new AST code two weeks ago but didn't > get any response. > Ok, I submitted bug reports on both the tktreectrl and the python sourceforge pages. Now I'll have a nice cup of

Re: Segfault with tktreectrl on python-2.5 on linux

2007-01-16 Thread klappnase
Anton Hartl schrieb: > > Solutions: > > a) convince Python developers to prefix ALL new (wrt. 2.5) >global symbols with a prefix like "_PyAST_" or equivalent; >this would be consistent with how it is done anyway, >unfortunately the new AST symbols deviate from this pra

Segfault with tktreectrl on python-2.5 on linux

2007-01-15 Thread klappnase
Hello, I use the tktreectrl Tk extension (http://tktreectrl.sourceforge.net) through the python wrapper module (http://klappnase.zexxo.net/TkinterTreectrl/index.html). With python-2.5 it seems that each time some text is inserted into the treectrl widget a segfault occurs (on linux, on windows2000

Re: Tkdnd--does anyone use it?

2006-12-19 Thread klappnase
> I use it in phonoripper > (http://klappnase.zexxo.net/phonoripper.index.html) to drag files from > Oops, wrong link address, should be: http://klappnase.zexxo.net/phonoripper/index.html Apologies Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkdnd--does anyone use it?

2006-12-19 Thread klappnase
Kevin Walzer schrieb: > Does anyone use the Tkdnd module that comes with Tkinter to allow > drag-and-drop of Tkinter widgets in your application? (Not the binary > extension that hooks into Xdnd and OLE-dnd on Windows.) I've looked at > the various documents for Tkdnd, and it looks somewhat compl

Re: New os.path.exists() behavior - bug or feature?

2006-12-19 Thread klappnase
Martin v. Löwis schrieb: > > Neither, nor. In both cases, the operating system is asked, and gives > this answer. However, in the Windows API, there is no "exists" function > (nor is there on Unix); instead, exists is implemented by calling > several underlying functions. The precise set of functi

New os.path.exists() behavior - bug or feature?

2006-12-17 Thread klappnase
Hi all, yesterday I installed Python-2.5 and python-2.4.4 on my windows2k box. When trying to use os.path.exists() to detect which drives are present on the system I noticed that these behave differently: Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32 Type "copyrigh

Re: Tix.Grid patch

2006-07-14 Thread klappnase
Fredrik Lundh schrieb: > > if you'd spent enough time clicking around on python.org, you might have ended > up on this page: > > http://sourceforge.net/tracker/?group_id=5470&atid=305470 > > (it's not obvious how to get there, so it's probably easiest if you just > click on the > above link ;

Tix.Grid patch

2006-07-13 Thread klappnase
Hi all, I just wrote a wrapper for the Tix.Grid widget (http://www.8ung.at/klappnase/TixGrid/TixGrid.html); I guess I should have searched before, because now I found this has already been done for Python2.5 . However it looks like my version offers some more functionality (and the ScrolledGrid

Using ioctl

2006-02-09 Thread klappnase
Hello, I am writing an app that records from the soundcard using ossaudiodev. In the OSS programmer's guide they recommend when reading data fragments from the soundcard to use the fragment size as it is requested by the driver. According to the programmer's guide the ioctl call to determine the r

oss mixer usage

2006-01-15 Thread klappnase
Hi, I am trying to write a mixer program using the ossaudiodev module. I could hardly find any documentation or example code, so I try and ask here. There are two things that seem to work already, however I am not sure if the solutions I found are the way it is supposed to be. First, when on init

Ann.: Python wrapper for Tktreectrl

2005-11-11 Thread klappnase
url is <http://www.8ung.at/klappnase/TkinterTreectrl/TkinterTreectrl.html>. Any reports, good or bad, are much appreciated. Regards Michael -- http://mail.python.org/mailman/listinfo/python-list

tk.createfilehandler() broken with threaded tcl?

2005-09-14 Thread klappnase
Hello everyone, I am running into troubles with some of my scripts that make use of tk.createfilehandler() to catch the output messages of subprocesses I started with popen2.Popen4() (debian linux, python-2.3.5, tk-8.4.9). Sometimes when those background processes are running it happens that the g

Ann: Tkinter drag and drop module

2005-07-14 Thread klappnase
app. It can be found at <http://www.8ung.at/klappnase/TkinterDnD/TkinterDnD.html>. Any feedback is much appreciated. Best regards Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter Bitmap Newbie question

2005-03-15 Thread klappnase
Neil Hodgson <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Wim Goffin: > > > But just to make sure I'm on the right track, > > - Is XBM the best way to for bitmaps? The ones I saw so far are all black > > and white. Do they also exist in color? > >XPM is the version of X

Re: i18n: looking for expertise

2005-03-12 Thread klappnase
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > klappnase wrote: > > enc = locale.nl_langinfo(locale.CODESET).lower() > > Notice that this may fail on systems which don't provide the > CODESET information. Rec

Re: i18n: looking for expertise

2005-03-11 Thread klappnase
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > > In the locale API, you have to do > > locale.setlocale(locale.LC_ALL, "") > > to activate the user's preferences. Python does that on startup, > but then restores it to the "C" locale, since that is the specif

Re: i18n: looking for expertise

2005-03-10 Thread klappnase
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Michael: > > on my box, (winXP SP2), sys.getfilesystemencoding() returns 'mbcs'. Oh, from the reading docs I had thought XP would use unicode: * On Windows 9x, the encoding is ``mbcs''. * On Mac OS X, the en

Re: i18n: looking for expertise

2005-03-08 Thread klappnase
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > That's apparently a bug in os.access, which doesn't support Unicode file > names. As a work around, do > > def access(name, mode, orig=os.access): > try: > return orig(name, mode) > except Unic

Re: Mysterious "Attribute Errors" when GUI Programming

2005-03-08 Thread klappnase
"Coral Snake" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > -- > Tkinter: > > from Tkinter import * > root = Tk() This creates the application's main window. The Tk() command is not some kind of initialization routine,

Re: i18n: looking for expertise

2005-03-07 Thread klappnase
"Serge Orlov" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > I've never used tkinter, but I heard good things about it. Are you > sure it's not you who made it to return byte string sometimes? Yes, I used a Tkinter.StringVar to keep track of the contents of an Entry widget; a

Re: looking for expertise

2005-03-03 Thread klappnase
"Neil Hodgson" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Michael: > > > Like I said, it's only supposed to run on linux; anyway, is it likely > > that problems will arise when filenames I have to handle have > > basically three sources: > > ... > > 3. filenames created by

Re: looking for expertise

2005-03-02 Thread klappnase
"Neil Hodgson" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Michael: > > > 5. file operations seem to be delicate; at least I got an error when I > > passed a filename that contains special characters as unicode to > > os.access(), so I guess that whenever I do file operation

i18n: looking for expertise

2005-03-02 Thread klappnase
Hello all, I am trying to internationalize my Tkinter program using gettext and encountered various problems, so it looks like it's not a trivial task. After some "research" I made up a few rules for a concept that I hope lets me avoid further encoding trouble, but I would feel more confident if s