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
> Leopar
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 s
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?
NARCISO, Rui writes:
Hi all,
I would like to be able to visualise a pdf document in a widget so as then to
add a couple of buttons for different actions and to have the widget integrate
into my Gui environment.
How to go about doing this ?
Does anyone already have something done ?
Thanks
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
http://www.riverbankcomp
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
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:
> >>
>
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
Fresh out of the oven, "Designer is a Good Resource" tries to explain resource
files, GUI guidelines, designer properties, icons and other grahical thingies.
http://lateral.netmanagers.com.ar/stories/BBS49.html
___
PyQt mailing listPyQt@riverbank
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 maili
On Monday 23 February 2009 11:31:03 Antonio Valentino wrote:
> Il giorno Mon, 23 Feb 2009 10:11:14 -0200
>
> Roberto Alsina ha scritto:
> > If you intend to use PyQt's QtHelp support, then maybe you will like
> > this tool I did to create Qt Help files from restr
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 starting
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 su
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:
QPersi
't know what the KURL::list type was, but dcopext
> does know.)
I replied already but maybe it didn't show up: just call kget with the URLs
you want to download as arguments in its CLI.
It will add them itself.
--
("\''/").__..-''"`-. . R
On Thursday 14 August 2008 10:47:32 Jan Holthuis wrote:
> Well, I really need to know if there's a way to do this. Maybe via DBUS or
> something like that...
> Can someone please help me?
os.system('kget %s'%url)
___
PyQt mailing listPyQt@riverbank
distro gives you.
> - How do I package an app up that uses PyQt4 as a double-click-installer
> for non-technical users?
Oh, windows, then ;-)
No idea here (but would like to know!)
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-
e can be run to build the app)
Reported.
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) KDE Developer (MFCH)
(_Y_.)' ._ ) `._`. " -.-' http://lateral.netmanagers.com.ar
_..`-'_..-_/
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 Andre
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 ha
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 i
another app before and never figured out why it
happened.
I am using
qt 4.4.0
pyqt 4.4.2
python 2.5.2
On Linux.
Any ideas?
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) KDE Developer (MFCH)
(_Y_.)' ._ ) `._`. "
te any of the space
assigned to it for its header.
Also note: If the value is set to true, this property will override the resize
mode set on the last section in the header.
You need to unset stretchLastSection first, then set it to a fixed size.
--
("\''/&qu
t regards,
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) KDE Developer (MFCH)
(_Y_.)' ._ ) `._`. " -.-' http://lateral.netmanagers.com.ar
_..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia
(l)-'' ((i)
to speed this up?
Try putting very little busywork in there instead of a setPixel (like,
calculate a square 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
... 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_.)' ._ ) `._`. &
om.ar/weblog/2007/09/14.html#BB628
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) KDE Developer (MFCH)
(_Y_.)' ._ ) `._`. " -.-' http://lateral.netmanagers.com.ar
_..`-'_..-_/ /-
.py "-m" switch or module 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.
--
("\''/
On Sat 05 May 2007 21:46:41 David Boddie wrote:
> On Sat May 5 23:17:07 BST 2007, Roberto Alsina wrote:
> > It's strange, I am having a problem with the menus of one specific PyQt4
> > app I am writing: The menus are too small for their content.
> >
> >
lp me?
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. " -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.' Buenos Aires - Ar
27;ve noticed that for example
> QTextStream has "setCodec" 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,
ight?)
Then the object can do this:
emit (QtCore.SIGNAL("newData"),"data")
If you previously connected that object's newData signal to the form's
setLabelText slot... you are golden, regardless of on what thread the signal
is emitted, I suppose
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
> > fai
mple for Red
Hat/Fedora/Centos users, kde-redhat.sf.net), distutils can create fairly
simple RPMs (they have no dependencies listed, so they are technically
broken, though).
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EM
code working than to make
> 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
--
(&
e removing
> it.
You really should use append() instead of setText(). It's faster than what you
are doing now, even if you pass it a python string :-)
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) [EMAI
avelli.net/PyQtWiki :/ , though funnily I seem to remember
> seeing the same thing.
Interestingly enough the broken thing may be the wiki search ;-)
http://www.diotavelli.net/PyQtWiki/DocsAndHowtos
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9
> 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 Ye
sure you
> want to delete ') + num + _(' files?')
> , QMessageBox.No,
> QMessageBox.Yes)
It will return 1 in Yes, 0 in No.
This behaviour is exactly like the C++ version.
--
("\''/").__..-''&quo
cleaner, because you are not overloading
cancel(), which should mean "do nothing" with a meaning it doesn't usually
have.
Another idea is to use radio buttons showing head/tails and then use
regular accept/cancel buttons.
--
("\''/").__..-''"
> 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 Al
blems - and the other computer didn't want
> to
> send mail.
Hope it's better now, and thanks for the answer!
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ )
se the TerminalInterface-specific functionality, you need a
TerminalInterface like this:
TerminalInterface* t = static_cast( 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 thin
> 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(wi
#x27;m getting that p has no widget member.
Any ideas?
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. " -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.&
> 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
stories/35.html
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. " -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.'
(l)-'
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
deletion 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
k Qt designer's manual, chapter 7 "Creating Custom Widgets 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 ;-)
--
("\''/").__
edora Core 2, sip 4.1.1, PyQt 3.13 (built with sip
> 4.1, in case that matters)
>
>___
> PyKDE mailing list[EMAIL PROTECTED]
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
>
--
("\''/").__..-''"
] http://gsbarbieri.sytes.net/~gustavo/qt_ui_loader.py
[2] http://gsbarbieri.sytes.net/~gustavo/pyqt_xml-ui_demo.tar.bz2
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. "
> isn't one - I'm kind of surprised there isn't any).
Absolute overkill: use a QTextBrowser or similar classes. Should be pretty
simple, even if it wastes a MB of RAM or two.
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `
8.html
In particular, 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 ;-)
--
("\'
t of the app, just
let me know ;-)
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. " -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.'
(l)-
ve
working :-)
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. " -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.'
(l)-'' ((
ribly (seg fault) after it has
>> loaded a couple 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 intern
working code example if possible.
Don't know what your problem is, but I have written something that uses a
QTextBrowser and extends it somewhat:
"PyBrowser: a nicer QTextBrowser" :-)
http://www.pycs.net/lateral/stories/17.html
--
("\''/").__..-''&quo
rribly important, because you can use it just fine, you only
need to handle the connections on python-code, but it is a small problem.
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_
blems!
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. " -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.' Buenos Aires - Argentina
Imm
al/stories/17.html
It's in the public domain, enjoy!
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. " -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.&
dget). You just 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.
--
("\''/&
ot to break the PyQt-windows license either.
If the riverbank guys approve, this would be nice :-)
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. " -.-'
:
http://sourceforge.net/projects/krsn
To cause the crash, add a blog that links somewhere else or embeds images.
I used PerversionTracker (it's not what the name suggests ;-), at
http://perversiontracker.com/
Thanks in advance for any effort!
--
("\''/"
s is the 3-line python script it runs.
Any ideas, suggestions working code? ;-)
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. " -.-' KDE Developer (MFCH)
_..`
Maybe someone here will like it :-)
http://www.pycs.net/lateral/stories/16.html
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ().`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. " -.-' KDE Developer (MFCH)
_..`-
68 matches
Mail list logo