Re: [PyQt] Phonon example

2009-03-10 Thread Christoph Burgmer
> Anyone has a simple working audio player widget done using phonon? http://techbase.kde.org/Development/Tutorials/Phonon/Introduction/Python Dunno if this is what you're looking for. Christoph ___ PyQt mailing listPyQt@riverbankcomputing.com http:

[PyQt] Re: seeking advice on why this script segfaults

2009-03-10 Thread Darren Dale
On Tue, Mar 10, 2009 at 5:28 PM, Darren Dale wrote: > Hello, > > I am trying to create a simple model and view for a simple nested > dictionary like d: > > c1 = {'id':1, 'description':'child 1'} > c2 = {'id':2, 'description':'child 2'} > d = {'id':0, 'description':'whatever', 'childre

Re: [PyQt] PyQt & SIP Release Plans

2009-03-10 Thread Matt Smith
Okay, I've got the latest PyQt, and I built it using the latest Qt4.5 so now I wanna know, how do I put plugins into a webview? is that supported yet? thanks mbs ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mai

Re: [PyQt] PyQt & SIP Release Plans

2009-03-10 Thread Matt Smith
I wonder what you mean by "crash" I had a similar problem passing a QMouseEvent, when I upgraded I needed to use &QMouseEvent with the ampersand. When it didn't work I would get the last event, so sometimes I would get a QTimer instead of a mouse event, but once I put the '&' in it worked ok. mbs

Re: [PyQt] linking listwidget with Qgraphicsview

2009-03-10 Thread Matt Smith
>From the looks of it your list widget has the name of the file you want to open and display so what you can do is connect the signal being emitted, itemClicked(QListWidgetItem *), and then get the text from the item passed with say my_list_item.text(). >From that you should be able to make a QP

Re: [PyQt] Programmatically changing the input method, and a missing qinputcontextfactory

2009-03-10 Thread Damien Elmes
Testing this out, QInputContextFactory.keys() returns 6 instances of "win", and there doesn't seem to be an obvious way to access the Japanese IME. I'm starting to think this might not be possible without writing a custom plugin that uses raw win32 calls to do its magic, unfortunately. On Wed, Jan

[PyQt] Phonon example

2009-03-10 Thread Roberto Alsina
Just in case before I spend another two hours trying: Anyone has a simple working audio player widget done using phonon? My goal is just a widget that takes a URL and lets the user play a sound file, ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] PyQt & SIP Release Plans

2009-03-10 Thread Phil Thompson
On Wed, 11 Mar 2009 07:06:21 +0900, Damien Elmes wrote: > I'm finding that executing the following code in an abstracttablemodel > results in a crash: > > self.emit(SIGNAL("dataChanged(QModelIndex, > QModelIndex)"), index, index) > > .. where index is taken from tableView.current

[PyQt] PyKDE: KConfigSkeleton not writing configuration

2009-03-10 Thread Till Gerken
Hello, I have a problem with KConfigSkeleton not writing its configuration to disk when calling KCoreConfigSkeleton::writeConfig(). The odd thing about this is that it works when being used together with KConfigDialog and KConfigDialogManager, in which case the configuration file is written correc

Re: [PyQt] Re: Embedding w/ multi-threaded Python

2009-03-10 Thread Roberto Alsina
On Tuesday 10 March 2009 19:40:48 McKay Davis wrote: > On Tue, Mar 10, 2009 at 11:08 AM, Phil Thompson > > wrote: > > On Tue, 10 Mar 2009 10:30:04 -1000, McKay Davis > > > > wrote: > >> After no response, maybe more specifics with our Multi-Threaded Python > >> w/ PyQt problem would help: > >> >

Re: [PyQt] PyQt & SIP Release Plans

2009-03-10 Thread Damien Elmes
I'm finding that executing the following code in an abstracttablemodel results in a crash: self.emit(SIGNAL("dataChanged(QModelIndex, QModelIndex)"), index, index) .. where index is taken from tableView.currentIndex() This code ran fine in PyQt4.4. Is it a bug in Qt/PyQt, or am I

Re: [PyQt] Re: Embedding w/ multi-threaded Python

2009-03-10 Thread Phil Thompson
On Tue, 10 Mar 2009 11:40:48 -1000, McKay Davis wrote: > On Tue, Mar 10, 2009 at 11:08 AM, Phil Thompson > wrote: >> On Tue, 10 Mar 2009 10:30:04 -1000, McKay Davis >> wrote: >>> After no response, maybe more specifics with our Multi-Threaded Python >>> w/ PyQt problem would help: >>> >>> In the

Re: [PyQt] Re: Embedding w/ multi-threaded Python

2009-03-10 Thread McKay Davis
On Tue, Mar 10, 2009 at 11:08 AM, Phil Thompson wrote: > On Tue, 10 Mar 2009 10:30:04 -1000, McKay Davis > wrote: >> After no response, maybe more specifics with our Multi-Threaded Python >> w/ PyQt problem would help: >> >> In the main thread, we do: >> >> PyEval_InitThreads(); // acquires the l

[PyQt] seeking advice on why this script segfaults

2009-03-10 Thread Darren Dale
Hello, I am trying to create a simple model and view for a simple nested dictionary like d: c1 = {'id':1, 'description':'child 1'} c2 = {'id':2, 'description':'child 2'} d = {'id':0, 'description':'whatever', 'children':[c1, c2]} I have a self-contained, relatively simple script atta

[PyQt] Pydee v0.3.0

2009-03-10 Thread Pierre Raybaut
Hi all, Two months ago, I made an announcement regarding a little open-source project of mine, PyQtShell -- that is a module providing embeddable console widgets for your PyQt applications (interactive Python shell, workspace, working directory browser, editor, ...) as well as "Pydee", a PYth

Re: [PyQt] Re: Embedding w/ multi-threaded Python

2009-03-10 Thread Phil Thompson
On Tue, 10 Mar 2009 10:30:04 -1000, McKay Davis wrote: > After no response, maybe more specifics with our Multi-Threaded Python > w/ PyQt problem would help: > > In the main thread, we do: > > PyEval_InitThreads(); // acquires the lock > PyInitialize(); > // other init stuff > PyThread_release_l

Re: [PyQt] QFIleDialog.getSaveFileName get the selectedFilter

2009-03-10 Thread Phil Thompson
On Tue, 10 Mar 2009 15:39:41 -0400, Darryl Wallace wrote: > I prefer to use the static method for the getSaveFilename in the > QFileDialog so that the user sees the Windows/Mac native dialog. > > My problem is that if the user doesn't type the file extension the in > the save file name (say whe

Re: [PyQt] Re: Embedding w/ multi-threaded Python

2009-03-10 Thread Marc Nations
Are you putting a small sleep (100 msec) in all your continuous thread loops to ensure that control gets passed back to the main thread? Sounds like a minor issue, but it can be a silent killer. Even with locks Python doesn't automatically handle the handoffs well. I don't think that changed with

[PyQt] Re: Embedding w/ multi-threaded Python

2009-03-10 Thread McKay Davis
After no response, maybe more specifics with our Multi-Threaded Python w/ PyQt problem would help: In the main thread, we do: PyEval_InitThreads(); // acquires the lock PyInitialize(); // other init stuff PyThread_release_lock() …and in each new Python thread we do: Py_NewInterpreter() … PyThrea

[PyQt] QFIleDialog.getSaveFileName get the selectedFilter

2009-03-10 Thread Darryl Wallace
I prefer to use the static method for the getSaveFilename in the QFileDialog so that the user sees the Windows/Mac native dialog. My problem is that if the user doesn't type the file extension the in the save file name (say when selecting an image type to save a file as), then I don't have a w

Re: [PyQt] QTextEdit.ExtraSelection not working anymore

2009-03-10 Thread Phil Thompson
On Tue, 10 Mar 2009 03:23:56 +0100, Henning Schröder wrote: > Hi! > In the attached example the first line should be highlighted. > Unfortunately it does not work on my system[1] > Normally I would think I have done something wrong but this code works > on my laptop[2] > > I haven't seen anything

[PyQt] FocusEvent problem with QTabWidget

2009-03-10 Thread Philippe Fremy
Hi, I am trying to catch focus events on my main widget, which happens to be a QTabWidget. It does not work if the widget is a QTabWidget but works for a regular QWidget. See the attached program, where you can choose the base class. I don't think I'm doing something wrong, so it's either a PyQt

[PyQt] QPixmap().grabWidget()

2009-03-10 Thread Michael Wyss
Hi I want to render my customwidget with fixed size into a Pixmap with QPixmap().grabWidget() but when doing so the width of the Widgets expands before the actual rendering, the height remains the same. I looked into the sourcecode of QPixmap and found out that the widget is being resized befor

[PyQt] linking listwidget with Qgraphicsview

2009-03-10 Thread klia
hey guys; in my application i have Listwidegt and Qgraphics view beside to each other in the interface, my intension is after i list my photos in the listwidget, i want that whenever i click on the photo on listwidget it will be displayed on the graphics view... Any idea on how to do that? here

[PyQt] QGraphicsView in a QGraphicsLayout/Plasmoid?

2009-03-10 Thread cfigura
I'm hoping someone can help me out here. I've got a little applet that I had originally written with the QCanvas but have just ported over to Qt4 using the QGraphicsView. I'd like to turn it into a plasmoid app, but have had very little luck finding documentation on that. I've successfully foun

[PyQt] QTreeWidget sorting problem

2009-03-10 Thread NARCISO, Rui
Hi all I have a QTreeWIdget that works perfectly to which I can add items without any problems. The problem happens when I sort the data after having dynamically removed an item. So, I remove an item by doing: item.parent().removeChild(item) which successfuly removes the item from the list. Ho

Re: [PyQt] Qfiledailoug multiple file selection

2009-03-10 Thread klia
Detlev Offenbach wrote: > > On Samstag, 7. März 2009, klia wrote: >> Detlev Offenbach wrote: >> > On Freitag, 6. März 2009, klia wrote: >> >> Hey folks; >> >> >> >> How can i be able to select multiple files whenever i browse my >> >> directory using QfileDailoug? >> >> >> >> this is the code t

[PyQt] PyQt & SIP Release Plans

2009-03-10 Thread Phil Thompson
The current PyQt and SIP snapshots represent what will be in the next releases. As well as full support for Qt v4.5 the following Roadmap items have been implemented... - Pythonic Connections - Implicit copying of const& - Extra Reference without Ownership There has been a significant amount of

Re: [PyQt] Any possibility doing SIGNAL forward using pyuic4?

2009-03-10 Thread Phil Thompson
On Tue, 10 Mar 2009 16:07:54 +0800, Grissiom wrote: > Hi, > > When I try to do SIGNAL forwarding using the designer I found that pyuic4 > always generate a short-circuit connections but not a customed new signal. > Is there anyway to do signal forwarding using pyuic4? Can you send me a .ui file

[PyQt] Any possibility doing SIGNAL forward using pyuic4?

2009-03-10 Thread Grissiom
Hi, When I try to do SIGNAL forwarding using the designer I found that pyuic4 always generate a short-circuit connections but not a customed new signal. Is there anyway to do signal forwarding using pyuic4? -- Cheers, Grissiom ___ PyQt mailing list