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
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
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?
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
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/
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
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
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
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
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
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
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
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:
.
--
(\''/).__..-''`-. . 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
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
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
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
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
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
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
,
--
(\''/).__..-''`-. . 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
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
... 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
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
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
?
--
(\''/).__..-''`-. . 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
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
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
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
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_
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
the C++ version.
--
(\''/).__..-''`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.' Buenos Aires - Argentina
Imminentizing the eschaton since 1971
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
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_
!
--
(\''/).__..-''`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.' Buenos Aires - Argentina
Imminentizing the eschaton since 1971
member.
Any ideas?
--
(\''/).__..-''`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.' Buenos Aires - Argentina
Imminentizing the eschaton since 1971
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
= 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
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
--
(\''/).__..-''`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.' Buenos Aires - Argentina
Imminentizing the eschaton since 1971.
___
PyKDE
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
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_
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_
___
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
://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
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
, 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
:-)
--
(\''/).__..-''`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.' Buenos Aires - Argentina
Imminentizing the eschaton since 1971
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
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
!
--
(\''/).__..-''`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.' Buenos Aires - Argentina
Imminentizing the eschaton since 1971.
___
PyKDE mailing
/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
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
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
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
55 matches
Mail list logo