Re: [PyQt] Qt, PyQt and spelling

2010-06-20 Thread Roberto Alsina
On Sunday 20 June 2010 15:19:49 projet...@club-internet.fr wrote: It's easy to make pyenchant work with pyqt. Check this out: http://code.google.com/p/marave/source/browse/#svn/trunk/marave/editor The problem is that this project is a small one and doesn't work on Snow Leopard, even

Re: [PyQt] Searching for a very small scprit using CLIPBOARD

2009-04-27 Thread Roberto Alsina
On Monday 27 April 2009 19:22:04 Giovanni Bajo wrote: On lun, 2009-04-27 at 18:42 +0200, projetmbc wrote: Thanks a lot, your solution works fine. :-) Here is the complete minimal code : #!/usr/bin/env python #coding=utf-8 import sys from

Re: [PyQt] how to covert an object text to string?

2009-04-06 Thread Roberto Alsina
klia writes: hey guys This is in Pyqt I have this code filename=os.path.basename(self.lwitem.text()) which self.lwitem.text() holds my filename path but i wanna convert it into a string how am i gonna do that?? You mean self.lwitem.text() is a QString and want to convert it to a string?

[PyQt] PyQt by exmple: session 5

2009-03-15 Thread Roberto Alsina
Just published it, lots of designer work, promoted widgets, custom slots, task adding/editing, form layouts, and more. http://lateral.netmanagers.com.ar/stories/BBS51.html ___ PyQt mailing listPyQt@riverbankcomputing.com

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 p...@riverbankcomputing.com wrote: On Tue, 10 Mar 2009 10:30:04 -1000, McKay Davis mckay@gmail.com wrote: After no response, maybe more specifics with our Multi-Threaded Python w/

[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

[PyQt] PyQt by example: session 4

2009-03-06 Thread Roberto Alsina
Just published, Action! introduces actions, toolbars, menubars. http://lateral.netmanagers.com.ar/stories/BBS50.html ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Configuration dialog

2009-03-05 Thread Roberto Alsina
On Thursday 05 March 2009 07:24:31 Frédéric wrote: Hello, I'm pretty sure I have seen a configuration dialog, like the one Designer uses for the property editor... I can't remember if it was a standard Qt widget, an example, a tutorial or a external documentation, or even in a book, but I

[PyQt] Session 2 of PyQt by Example

2009-03-03 Thread Roberto Alsina
Ready for readers/critics/translators. Hope you like it! http://lateral.netmanagers.com.ar/stories/BBS48.html ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] New PyQt tutorial series: PyQt by example

2009-03-01 Thread Roberto Alsina
I just published the first part in this series. It's probably going to be 10- parts or more, and I will try to do two parts a week. http://lateral.netmanagers.com.ar/stories/BBS47.html Comments, suggestions, questions, etc, are welcome. ___ PyQt

[PyQt] A tool to create pythonic Qt help files

2009-02-23 Thread Roberto Alsina
If you intend to use PyQt's QtHelp support, then maybe you will like this tool I did to create Qt Help files from restructured text: http://rst2qhc.googlecode.com It takes care of creating the XML files describing the structure of the docs, inserts keywords, creates TOCs, and more, all

Re: [PyQt] Avoiding freeze of the application

2009-02-07 Thread Roberto Alsina
On Saturday 07 February 2009 13:53:27 Geert Vancompernolle wrote: I currently started the one shot timer just before I launched the subprocess call, but I see that the one shot timer is also blocked by the subprocess call. So, that doesn't do what I in fact want to do. Check the docs for

[PyQt] QPersistentModelIndex problem

2009-02-06 Thread Roberto Alsina
I am trying to inherit QAbstractItemModel and am having problems implementing parent(). In order to do it correctly to represent a tree structure, I am storing a QPersistentModelIndex in my tree node. However, parent needs to return a plain QModelIndex. AFAICS, this is how you convert:

Re: [PyQt] Add a download to KGet

2008-08-14 Thread Roberto Alsina
. -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) KDE Developer (MFCH) (_Y_.)' ._ ) `._`. -.-' http://lateral.netmanagers.com.ar _..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia (l)-'' ((i).' ((!.' according to alexa.com (27/5/2007) Debugging

Re: [PyQt] Strange bug in PyQt

2008-08-09 Thread Roberto Alsina
On Saturday 09 August 2008 09:40:31 Andreas Pakulat wrote: On 08.08.08 19:42:19, Roberto Alsina wrote: On Friday 08 August 2008 18:43:12 Andreas Pakulat wrote: On 08.08.08 16:36:35, Roberto Alsina wrote: I don't know how to explain it, si I have to use pictures. Are you talking

Re: [PyQt] Strange bug in PyQt

2008-08-09 Thread Roberto Alsina
On Saturday 09 August 2008 15:57:01 Andreas Pakulat wrote: On 09.08.08 14:09:17, Roberto Alsina wrote: On Saturday 09 August 2008 09:40:31 Andreas Pakulat wrote: On 08.08.08 19:42:19, Roberto Alsina wrote: On Friday 08 August 2008 18:43:12 Andreas Pakulat wrote: On 08.08.08 16:36:35

Re: [PyQt] Strange bug in PyQt

2008-08-09 Thread Roberto Alsina
to build the app) Reported. -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) KDE Developer (MFCH) (_Y_.)' ._ ) `._`. -.-' http://lateral.netmanagers.com.ar _..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia (l)-'' ((i).' ((!.' according

[PyQt] Strange bug in PyQt

2008-08-08 Thread Roberto Alsina
4.4.0 pyqt 4.4.2 python 2.5.2 On Linux. Any ideas? -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) KDE Developer (MFCH) (_Y_.)' ._ ) `._`. -.-' http://lateral.netmanagers.com.ar _..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia (l)-'' ((i

Re: [PyQt] Strange bug in PyQt

2008-08-08 Thread Roberto Alsina
On Friday 08 August 2008 18:43:12 Andreas Pakulat wrote: On 08.08.08 16:36:35, Roberto Alsina wrote: I don't know how to explain it, si I have to use pictures. Are you talking about the cut-off menu items? Or what? Which parts of the pictures should we look into/ Cutoff menu items, varying

Re: [PyQt] QTreeWidget and fixed column widths on window resize

2008-07-31 Thread Roberto Alsina
on the last section in the header. You need to unset stretchLastSection first, then set it to a fixed size. -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) KDE Developer (MFCH) (_Y_.)' ._ ) `._`. -.-' http://lateral.netmanagers.com.ar

[PyQt] New PyQt application: testers wanted

2008-07-25 Thread Roberto Alsina
, -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) KDE Developer (MFCH) (_Y_.)' ._ ) `._`. -.-' http://lateral.netmanagers.com.ar _..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia (l)-'' ((i).' ((!.' according to alexa.com (27/5/2007) Debugging is twice

Re: [PyQt] Pixel pushing performance

2008-05-07 Thread Roberto Alsina
root),and I bet that will slow enough to be noticeable, too. You need to find a way not to *have* to do that, or you will need to do it outside python. 300x300 are 90K iterations. 90K anything takes a little while.   --  (\''/).__..-''`-. .         Roberto Alsina  `9_ 9

[PyQt] If anyone wants to write about PyQt...

2007-10-15 Thread Roberto Alsina
... maybe you can get it published in Python Magazine: http://blog.doughellmann.com/2007/10/python-magazine-wish-list.html   --  (\''/).__..-''`-. .         Roberto Alsina  `9_ 9  )   `-. (    ).`-._.`)  KDE Developer (MFCH)  (_Y_.)' ._   ) `._`.   -.-'  http://lateral.netmanagers.com.ar

Re: [PyQt] freezing PyQt4 applications

2007-05-13 Thread Roberto Alsina
path. How can I still freeze my script, if possible to a single ELF file? I have had some success using cx_freeze. Not to a single file, but to a single folder, at least. I only needed to tell it manually to add sip.   --  (\''/).__..-''`-. .         Roberto Alsina  `9_ 9

Re: [PyQt] UTF-8 files handling in PyQT4

2007-05-05 Thread Roberto Alsina
but there isn't anything about encoding for QFile or textEdit. Sorry, I haven't followed the thread, but... maybe you need to open the file using the codecs module instead of plain open()? codecs.open(fname,'r','utf-8').read() I know this works :-) --  (\''/).__..-''`-. .         Roberto Alsina  `9_ 9

[PyQt] Menu layout problem

2007-05-05 Thread Roberto Alsina
? --  (\''/).__..-''`-. .         Roberto Alsina  `9_ 9  )   `-. (    ).`-._.`) [EMAIL PROTECTED]  (_Y_.)' ._   ) `._`.   -.-'   KDE Developer (MFCH)   _..`-'_..-_/ /-'_.' (l)-'' ((i).' ((!.'   Buenos Aires - Argentina Debugging is twice as hard as writing the code in the first place. Therefore, if you

Re: [PyQt] update qt labels from another thread

2007-04-11 Thread Roberto Alsina
slot... you are golden, regardless of on what thread the signal is emitted, I suppose.   --  (\''/).__..-''`-. .         Roberto Alsina  `9_ 9  )   `-. (    ).`-._.`) [EMAIL PROTECTED]  (_Y_.)' ._   ) `._`.   -.-'   KDE Developer (MFCH)   _..`-'_..-_/ /-'_.' (l)-'' ((i).' ((!.'   Buenos Aires

Re: [PyKDE] also about pyqt

2006-03-15 Thread Roberto Alsina
El Martes, 14 de Marzo de 2006 20:17, Hans-Peter Jansen escribió: Am Dienstag, 14. März 2006 17:49 schrieb Roberto Alsina: If the user has PyQt installed by other means (for example for Red Hat/Fedora/Centos users, kde-redhat.sf.net), distutils can create fairly simple RPMs (they have

Re: [PyKDE] also about pyqt

2006-03-14 Thread Roberto Alsina
they are technically broken, though). -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i).' ((!.' Buenos Aires - Argentina Imminentizing the eschaton since 1971

Re: [PyKDE] Dictionary thru new Signal/Slot mechanism

2006-02-01 Thread Roberto Alsina
a derivative class of a supported type and make it behave as a dictionary without being one. For instance: I haven't even got PyQt4 yet, but how about inheriting from a dictionary and a QObject? class myclass (QObject,dict): whatever   --  (\''/).__..-''`-. .         Roberto Alsina  `9_

Re: [PyKDE] Is it possible to fake multiple inheritance with PyQt ?

2005-09-09 Thread Roberto Alsina
seeing the same thing. Interestingly enough the broken thing may be the wiki search ;-) http://www.diotavelli.net/PyQtWiki/DocsAndHowtos -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH

Re: [PyKDE] Problem with messagebox

2005-08-02 Thread Roberto Alsina
the C++ version. -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i).' ((!.' Buenos Aires - Argentina Imminentizing the eschaton since 1971

Re: [PyKDE] Problem with messagebox

2005-08-02 Thread Roberto Alsina
2005/8/2, Roberto Alsina [EMAIL PROTECTED]: QMessageBox.question returns an integer: 0 if you click the first button 1 for the second (if there is one) 2 for the third (if there is one) [...] It will return 1 in Yes, 0 in No. This behaviour is exactly like the C++ version. Thank you

Re: [PyKDE] KPart problem

2005-07-26 Thread Roberto Alsina
I'll probably hide TerminalInterface altogether in PyKDE and just expose konsolePart. I'll see if I can put something together in the next few days. Awesome :-) -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_

Re: [PyKDE] KPart problem

2005-07-25 Thread Roberto Alsina
! -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i).' ((!.' Buenos Aires - Argentina Imminentizing the eschaton since 1971

[PyKDE] KPart problem

2005-07-24 Thread Roberto Alsina
member. Any ideas? -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i).' ((!.' Buenos Aires - Argentina Imminentizing the eschaton since 1971

Re: [PyKDE] KPart problem

2005-07-24 Thread Roberto Alsina
On Sun Jul 24 21:28:38 MEST 2005, Roberto Alsina wrote: And here's my attempt: def main(args): app=kdecore.KApplication(args,'dropbear') win=kparts.KParts.MainWindow() app.setMainWidget(win) factory = kdecore.KLibLoader.self().factory( libkonsolepart

Re: [PyKDE] KPart problem

2005-07-24 Thread Roberto Alsina
= static_castTerminalInterface*( p-qt_cast( TerminalInterface ) ); And I am, of course, getting a kparts.KParts.ReadWritePart Is there a way to recast it from the python side of things, or is it a problem on the PyKDE side? -- (\''/).__..-''`-. . Roberto Alsina `9_ 9

Re: [PyKDE] Little article: data-aware widgets implemented in python

2005-03-10 Thread Roberto Alsina
On Wednesday 09 March 2005 21:13, Roberto Alsina wrote: I just wrote an article with an idea on how to implement data-aware widgets on the python side of PyQt, so you can, for example, use Python's DB APIs instead of Qt's. It's kinda nifty, if I may say so myself :-) Check it out: http

[PyKDE] Little article: data-aware widgets implemented in python

2005-03-09 Thread Roberto Alsina
-- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i).' ((!.' Buenos Aires - Argentina Imminentizing the eschaton since 1971. ___ PyKDE

[PyKDE] A small pyqt app

2004-12-07 Thread Roberto Alsina
A (very) simple spreadsheet. Check it out: http://www.pycs.net/lateral/weblog/2004/12/07.html#P272 -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i

[PyKDE] How to delete QCanvasItems?

2004-11-25 Thread Roberto Alsina
of the C++ object at least? It would still leak some memory on the python side, but it would be somewhat better. If q QCanvasItem was a QObject I would call deleteLater, but it isn't. -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_

Re: [PyKDE] Using custom components and Qt Designer withQWidgetFactory in PyQt

2004-11-03 Thread Roberto Alsina
with Plugins to see what I mean. The bad news is that I am not sure how that could be done for python widgets. The good news are there's a lot of smart people on this list ;-) -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_

Re: [PyKDE] PyQt 3.13: crash on exit when using QCanvasSprite

2004-10-06 Thread Roberto Alsina
___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i

Re: [PyKDE] QWidgetFactory question.

2004-09-14 Thread Roberto Alsina
://gsbarbieri.sytes.net/~gustavo/pyqt_xml-ui_demo.tar.bz2 -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i).' ((!.' Buenos Aires - Argentina Imminentizing the eschaton

Re: [PyKDE] Active links in a QLabel

2004-08-17 Thread Roberto Alsina
simple, even if it wastes a MB of RAM or two. -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i).' ((!.' Buenos Aires - Argentina Imminentizing the eschaton

[PyKDE] (no subject)

2004-06-03 Thread Roberto Alsina
, if you read it, you get hints about how to handle exceptions gaphically, how to use the shelve module for preferences, a bit about QActions and some other stuff. Hope you like it, and if someone wants to write the rest of the app, just let me know ;-) -- (\''/).__..-''`-. . Roberto Alsina

[PyKDE] PyBrowser: fix for the segfault

2004-03-31 Thread Roberto Alsina
:-) -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i).' ((!.' Buenos Aires - Argentina Imminentizing the eschaton since 1971

Re: [PyKDE] QTextBrowser: no mimesource for

2004-03-30 Thread Roberto Alsina
something that uses a QTextBrowser and extends it somewhat: PyBrowser: a nicer QTextBrowser :-) http://www.pycs.net/lateral/stories/17.html -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH

Re: [PyKDE] QTextBrowser: no mimesource for

2004-03-30 Thread Roberto Alsina
of pages with embedded graphics over the web. Detlev Am Dienstag, 30. März 2004 14:29 schrieb Roberto Alsina: Hello I want show html file (from internet and local filesystem) in my PyQT application. QTextBrowser-Widget should do it. When i load (setSource) a html i get

[PyKDE] open/save files with automatic dialogs and support for encryption and compression

2004-03-01 Thread Roberto Alsina
! -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i).' ((!.' Buenos Aires - Argentina Imminentizing the eschaton since 1971. ___ PyKDE mailing

[PyKDE] Some code you may like :-)

2004-02-02 Thread Roberto Alsina
/17.html It's in the public domain, enjoy! -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i).' ((!.' Buenos Aires - Argentina Imminentizing the eschaton

[PyKDE] Wrapping standalone kautoconfig

2004-01-28 Thread Roberto Alsina
slap something up in designer, and blam, it's a config dialog :-) If someone with more sip knowledge could wrap this, it would be, I think, very useful for all PyQt-using developers. It's LGPL, so there shouldn't be any licensing concerns. -- (\''/).__..-''`-. . Roberto Alsina `9_ 9

[PyKDE] PyQt application packagers for windows?

2004-01-22 Thread Roberto Alsina
it not to break the PyQt-windows license either. If the riverbank guys approve, this would be nice :-) -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i

[PyKDE] Small PyQt tutorial

2004-01-10 Thread Roberto Alsina
Maybe someone here will like it :-) http://www.pycs.net/lateral/stories/16.html -- (\''/).__..-''`-. . Roberto Alsina `9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED] (_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i).' ((!.' Buenos