sending keystrokes to gtk window

2006-01-25 Thread sven
hi list, i'd like to send keystrokes to a (terminal) window. the windowmanager is gnome (ubuntu). what i want to do is to control dvgrab which can be started in interactive mode. thx in advance, sven. -- http://mail.python.org/mailman/listinfo/python-list

defining __repr__

2005-09-12 Thread sven
hi list, i'd like to define __repr__ in a class to return the standardrepr a la "<__main__.A instance at 0x015B3DA0>" plus additional information. how would i have to do that? how to get the standardrepr after i've defined __repr__? sven. -- http://mail.python.org/mailman/listinfo/python-list

Re: Synchronous/Asynchrnous Audio play with pymedia

2005-09-19 Thread sven
ith pymedia on >XP. there's a pymedia mailing list at: https://lists.sourceforge.net/lists/listinfo/pymedia-users better ask there, the author of pymedia is generally very helpful in answering question. sven. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question About Logic In Python

2005-09-19 Thread sven
len__(self): return 1 ... >>> foo = Foo() >>> bar = Bar() >>> foo or bar <__main__.Bar instance at 0x7D289940> sven. -- http://mail.python.org/mailman/listinfo/python-list

urlretrieve get file name

2006-11-09 Thread Sven
. Some hints to point me in the right direction are greatly appreciated. Sven -- http://mail.python.org/mailman/listinfo/python-list

Re: urlretrieve get file name

2006-11-09 Thread Sven
Hello Gabriel, Thanks for your help, but I'm a guy with no luck. :-) I can't get the file name from response header... On Nov 10, 12:39 am, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Thursday 9/11/2006 19:11, Sven wrote: > > >I'm wrestling with the u

Re: urlretrieve get file name

2006-11-10 Thread Sven
Thursday 9/11/2006 20:52, Sven wrote: > > >Thanks for your help, but I'm a guy with no luck. :-) I can't get the > >file name from response header...Try using a browser and "Save as..."; if it > >suggests a file name, it > *must* be in the headers - so l

Re: urlretrieve get file name

2006-11-11 Thread Sven
> You can use the geturl() method to obtain the true URL used (that > would behttp://page.com/filename.zip) and then rename the file. Thanks mate, this was exactly what I needed. A realy clean and simple solution to my problem. :-) -- http://mail.python.org/mailman/listinfo/python-list

Tiny fonts in wxPython app

2005-04-18 Thread Sven Kobow
Hello, I'm not yet a python programmer but a python user. I faced a problem with tiny fonts in a wxPython app on a GNU/Debian system. Under Gentoo Linux the fonts are displayed in a normal readable size. Only on that Debian system fonts in the whole app are rather tiny. I spend quite a long time g

Re: Tiny fonts in wxPython app

2005-04-18 Thread Sven Kobow
Jeff Reavis wrote: > Sven, > It may be the default gtk font settings. This can be changed in the > .gtkrc file. > > -jjr > I'm not sure but the gnome font in general looks okay? Could be something about proportional fonts? Or maybe a Unicode issue? I read something abo

Re: calling ksh script from python

2005-06-04 Thread Sven Mascheck
(fup'2 set) In comp.unix.shell Donn Cave wrote: > Portability [ksh] > "echo" seems to mimic the behavior of sh on its host platform. Rather: both usually mimic echo(1) - some shells even inspect PATH (e.g. /usr/ucb/, /usr/5bin/ vs. /usr/bin/) and act accordingly. -- http://mail.python.org/mailma

wxPython ListCtrl_edit and TextEditMixin on mac OS X 10.4

2005-08-04 Thread Sven Tissot
following * download and install http://pythonmac.org/packages/TigerPython23Compat.pkg.zip * used multiversion install via adding o import wxversion o wxversion.select("2.6") kind regards, Sven -- http://mail.python.org/mailman/listinfo/python-list

2.5a1 import of .dlls

2006-04-18 Thread sven . nystrom
I've re-built an extension module (as a .dll) using the 2.5a1 release. Unexpectedly, I'm not able to simply import it (not the way I can when building it for 2.3). Using imp.load_dynamic() the import succeeds. >>> import minx # Implemented in a .dll - fails Traceback (most recent call last):

pythoncode in matlab

2006-05-11 Thread Sven Jerzembeck
Hello guys, is there any possibiliy using Phython code in Matlab. I couldnt find any helpful stuff. Its not graphical stuff I am doing just calculations with arrays and strings. Thanks for answering in advance Sven -- http://mail.python.org/mailman/listinfo/python-list

Iterating generator from C

2006-05-13 Thread Sven Suursoho
, PyInt_AsLong(item)); Py_DECREF(item); } Py_DECREF(gen); Py_DECREF(code); Py_DECREF(globals); Py_Finalize(); return 0; } Br, -- Sven Suursoho -- http://mail.python.org/mailman/listinfo/python-list

Re: Iterating generator from C

2006-05-15 Thread Sven Suursoho
x27;s command-line i.e. no Py_DEBUG and still active asserts(). See: http://archives.postgresql.org/pgsql-patches/2006-05/msg00042.php http://archives.postgresql.org/pgsql-patches/2006-05/msg00105.php -- Sven Suursoho -- http://mail.python.org/mailman/listinfo/python-list

using FFTW3 with Numeric on Windows

2006-05-28 Thread sven koenig
hi list, as the subject says, I'm trying to find a way to use FFTW3 with Numeric arrays. I'm not very familiar with C(++) - I think ctypes is the way to go, but I don't really have a clue how to do it. Has somebody already tried this? thx, sven. -- http://mail.python.org/mailman/

Newbie question: PyQt & Form::init()

2006-09-25 Thread Sven Ehret
Hello List, I am trying to learn Python and followed the tutorial at http://www.cs.usfca.edu/~afedosov/qttut/. Being happy that it works, I am now trying to do my own project, but I am having problems with initialization of my form. I want to automatically fill a couple of comboboxes upon startin

Re: Newbie question: PyQt & Form::init()

2006-09-25 Thread Sven Ehret
Diez B. Roggisch wrote: > Sven Ehret wrote: > >> Hello List, >> >> I am trying to learn Python and followed the tutorial at >> http://www.cs.usfca.edu/~afedosov/qttut/. Being happy that it works, I am >> now trying to do my own project, but I am having proble

Re: Newbie question: PyQt & Form::init() SOLVED

2006-09-25 Thread Sven Ehret
Diez B. Roggisch wrote: > Sven Ehret wrote: > >> Diez B. Roggisch wrote: >> >>> Sven Ehret wrote: >>> >>>> Hello List, >>>> >>>> I am trying to learn Python and followed the tutorial at >>>> http://www.cs.usfc

python embedding and threads

2007-01-18 Thread Sven Rech
Hi, I'm the author of an application written in C, which should now be extended with a python plugin system. It already works very good, but I now have a problem: Threading functionality within the python modules, that my C app loads and calls, doesn't work. This means, the threads do not run (t

find out all threads?

2007-05-11 Thread Sven Rech
Hi, I have a written a C program which makes use of python embedding. I want to find out all threads that a loaded module has started. But I can't find anything about this in the docs. Is it possible? -- http://mail.python.org/mailman/listinfo/python-list

Problems with thread safety

2007-05-12 Thread Sven Rech
Hi, In my C program, I want to use python scripts. This scripts should also have the ability to start threads. So at the initilisation phase I do: PyEval_InitThreads(); PyEval_ReleaseLock(); With the second call I want to release lock, for that the python threads can also do their work. But the

Iterating generator from C

2006-06-17 Thread sven . suursoho
Does messing with signal handlers and longjmp affect Python interpreter? I'm trying to find solution for problem, described in http://groups.google.com/group/comp.lang.python/browse_thread/thread/98cbae94ca4beefb/9d4d96fd0dd9fbc3 and came up with test application. It works well but i'm not sure it