Re: [PyQt] How can I capture some mouse events but ignore others?

2009-03-06 Thread Jim Bublitz
On Friday 06 March 2009 06:53:01 am Marc Nations wrote: Hi, I'm trying to create a custom table which pops up a menu when the user right clicks. This part works ok. It looks like this: class Table(QtGui.QTableWidget): def __init__(self, parent, gui):

Re: [PyQt] How can I capture some mouse events but ignore others?

2009-03-06 Thread Jim Bublitz
On Friday 06 March 2009 09:06:03 am Andreas Pakulat wrote: On 06.03.09 08:40:17, Jim Bublitz wrote: On Friday 06 March 2009 06:53:01 am Marc Nations wrote: Hi, I'm trying to create a custom table which pops up a menu when the user right clicks. This part works ok. It looks like

Re: [PyQt] pdf print

2009-02-26 Thread Jim Bublitz
On Thursday 26 February 2009 13:41:41 pm Nahuel Defossé wrote: Hi I've created pdf output in a StringIO file which I'd like to print in my PyQt4 app. Should I save it and send it to the system default reader? or could I automate this task? Is it possible to pirnt the file directly from PyQt?

Re: [PyQt] Re: LGPL license.

2009-02-10 Thread Jim Bublitz
On Tuesday 10 February 2009 13:30:24 pm Robert Kern wrote: pyKDE is ??? LGPL??? No, PyKDE is GPL. http://sourceforge.net/projects/pykde PyKDE4 is LGPL (per KDE request, more or less). The docs are (were?) Creative Commons. I'm not sure what PyKDE3 is - it's basically whatever I want it

Re: [PyQt] LGPL license.

2009-02-10 Thread Jim Bublitz
On Tuesday 10 February 2009 14:41:02 pm Knapp wrote: Oh, btw what implications it has for your application/development to use Qt or PyQt licensed under GPL or LGPL or commercial is something you should discuss with a lawyer. Andreas Yes, all is clear now, thanks. This bit about the

Re: [PyQt] LGPL license.

2009-02-10 Thread Jim Bublitz
On Tuesday 10 February 2009 19:44:12 pm Arthur Pemberton wrote: And I empahisze with Jim and having to deal with whinners. They get into every open source project and drain the lead developers of their drive -- it's pretty unfortunate. I hope Jim does what is best for him, as much as I would

Re: [PyQt] KHTMLPart mouse events

2009-01-09 Thread Jim Bublitz
On Friday 09 January 2009 08:50:07 am Christoph Burgmer wrote: Jim, Simon, I hope you can help me. I am trying to track a user's MidButton mouse click to track paste actions. It seems that khtmlMousePressEvent (khtml::MousePressEvent* event) is the right place to do that, but the sip-file

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Jim Bublitz
On Wednesday 07 January 2009 05:27:06 am Sundance wrote: Adeodato Simó wrote: If you see in the middle of a program hex_(foo), you may wonder where that came from, whereas qhex(foo) is going to be rather obvious. Greetings all, Might I humbly second this motion? I do understand the usual

Re: [PyQt] QCheckBox problem

2009-01-04 Thread Jim Bublitz
On Sunday 04 January 2009 17:30:41 pm Doug Hackworth wrote: Greetings. This should be an easy one for someone to answer. Simple situation: I have a QCheckBox on a main window along with other widgets, but mysteriously it won't do anything. Since all my other widgets (buttons, mainly) do

Re: [PyQt] KIntNumInput question

2008-12-21 Thread Jim Bublitz
On Sunday 21 December 2008 07:40:25 am Neal Becker wrote: num_in = KIntNumInput (self, 0, 0, 16) gives: TypeError: too many arguments to KIntNumInput(), 1 at most expected But according to http://api.kde.org/pykde-4.1-api/kdeui/KIntNumInput.html#obj175289196 There are constructors

Re: [PyQt] Re: KIntNumInput question

2008-12-21 Thread Jim Bublitz
On Sunday 21 December 2008 14:22:03 pm Neal Becker wrote: Jim Bublitz wrote: On Sunday 21 December 2008 07:40:25 am Neal Becker wrote: num_in = KIntNumInput (self, 0, 0, 16) gives: TypeError: too many arguments to KIntNumInput(), 1 at most expected But according to http

Re: [PyQt] PyQt4-extrawidgets project

2008-11-11 Thread Jim Bublitz
On Tuesday 11 November 2008 09:04, piotr maliński wrote: I've started a project at code.google.com that contains all PyQt4 widgets made by me with the help of SIP. http://code.google.com/p/pyqt4-extrawidgets/ Currently there are two widgets: QTermWidget and qt-macnavbar (screenshot:

Re: [PyQt] design flaw in python khtml DOM bindings

2008-10-14 Thread Jim Bublitz
On Tuesday 14 October 2008 14:21, Luke Kenneth Casson Leighton wrote: folks, hi, thanks to some kind people on the kde-dev mailing list i'm posting here to describe an important design issue which makes the python khtml.DOM bindings completely unusable - for serious projects - unless it's

Re: [PyQt] [PyKDE] KTextEditor interface classes

2008-08-29 Thread Jim Bublitz
On Friday 29 August 2008 15:02, Paul Giannaros wrote: KTextEditor works with an interface class -- implementors of the interface subclass KTextEditor::View and KTextEditor::Document, with the subclasses also inheriting from any interfaces that they choose to support. This is a problem -- I

Re: [PyQt] [PyKDE] KTextEditor interface classes

2008-08-29 Thread Jim Bublitz
On Friday 29 August 2008 16:19, Paul Giannaros wrote: On Fri, Aug 29, 2008 at 11:47 PM, Jim Bublitz [EMAIL PROTECTED] wrote: On Friday 29 August 2008 15:02, Paul Giannaros wrote: KTextEditor works with an interface class -- implementors of the interface subclass KTextEditor::View

Re: [PyQt] Auto-generate sip specification file?

2008-08-14 Thread Jim Bublitz
On Thursday 14 August 2008 17:02, Mark A. Schmucker wrote: Hi, I used SIP today to generate a wrapper for one class in my library. My library has about 50 classes, and I want to wrap most of them. Now that I have things set up, it won't be too hard to copy each header file and manually edit

Re: [PyQt] PyKDE4 documentation?

2008-07-30 Thread Jim Bublitz
On Wednesday 30 July 2008 02:41, Benno Dielmann wrote: Hi, http://techbase.kde.org/Development/Languages/Python/Using_PyKDE_4 says there are several tutorials on programming in PyKDE4. Where can they be found? They were in the PyKDE4 tarball in the tutorials/ directory. I think the only

Re: [PyQt] PyKDE application crashes on exit

2008-07-30 Thread Jim Bublitz
On Wednesday 30 July 2008 12:56, Benno Dielmann wrote: Hi, This PyKDE4 application always crashes on exit: - import sys from PyQt4.QtCore import * from PyQt4.QtGui import * from PyKDE4.kdecore import ki18n, KAboutData, KCmdLineArgs

Re: [PyQt] sip doesn't recognize structs with parent structs/classes

2008-07-16 Thread Jim Bublitz
On Wednesday 16 July 2008 16:12, Erick Tryzelaar wrote: I've got a simple sip file that has: struct Foo { %TypeHeaderCode #include foo.h %End virtual Foo(); }; struct Bar: Foo { %TypeHeaderCode #include foo.h %End virtual Bar(); }; That should be valid code though, right?

Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-15 Thread Jim Bublitz
On Sunday 15 June 2008 06:36, Adeodato Simó wrote: * Simon Edwards [Sun, 15 Jun 2008 15:07:28 +0200]: sip - 4.7.6 Qt - 4.4.0 PyQt - 4.3.3 -- note this KDE - 4.0.80 PyKDE4 - 4.0.2 (from Riverbank) If I upgrade PyQt to 4.4.2, things stop working. Also note how running

Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-14 Thread Jim Bublitz
On Friday 13 June 2008 08:19, Adeodato Simó wrote: * Jim Bublitz [Fri, 13 Jun 2008 07:50:31 -0700]: PyKDE3 or PyKDE4? Er, PyKDE4 (since I said I was using PyQt 4.4...) But you're trying to use KDE3 syntax. There is no KAboutData ctor that takes only a char string (or QString). Look

Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-14 Thread Jim Bublitz
On Saturday 14 June 2008 11:52, Adeodato Simó wrote: * Jim Bublitz [Sat, 14 Jun 2008 10:37:07 -0700]: Hello, On Friday 13 June 2008 08:19, Adeodato Simó wrote: * Jim Bublitz [Fri, 13 Jun 2008 07:50:31 -0700]: PyKDE3 or PyKDE4? Er, PyKDE4 (since I said I was using PyQt 4.4

Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-13 Thread Jim Bublitz
On Friday 13 June 2008 01:23, Adeodato Simó wrote: Hello, I upgraded to PyQt 4.4.2 this morning, and now KAboutData no longer works for me: kdecore.KAboutData('foo') Traceback (most recent call last): File stdin, line 1, in module TypeError: argument 1 of KAboutData() has an invalid

Re: [PyQt] PyKDE: problems sending singals to KPART

2008-06-05 Thread Jim Bublitz
On Wednesday 04 June 2008 23:42, Thomas Winkler wrote: Hello, Yes - short of writing some C++ DCOP would be the solution, if KPDF exposes a sufficient interface via DCOP, which apparently it does. [...] There is an example (example_dcopext.py) in PyKDE/examples. I had a look at the

Re: [PyQt] configuring pykde4, error

2008-05-21 Thread Jim Bublitz
On Wednesday 21 May 2008 07:04, Darren Dale wrote: On Tuesday 20 May 2008 03:29:14 pm Jim Bublitz wrote: On Tuesday 20 May 2008 10:47, Darren Dale wrote: At that point, I get another can't use default assignment operator error: I'm not sure what's causing that error, which seems

Re: [PyQt] configuring pykde4, error

2008-05-20 Thread Jim Bublitz
On Tuesday 20 May 2008 10:47, Darren Dale wrote: At that point, I get another can't use default assignment operator error: I'm not sure what's causing that error, which seems to be the basic problem (other than having an updated configure.py). I haven't downloaded the latest KDE yet, but will

Re: [PyQt] configuring pykde4, error

2008-05-15 Thread Jim Bublitz
I think I must have a different version of configure.py than you are expecting. I'm using the one that comes with pykde-4.0.2-1 at the riverbankcomputing website. It doesnt have a variable called opt_qt_inc_dir, nor a statement like if incdir.startswith ('Q'). Here is part of configure.py,

Re: [PyQt] configuring pykde4, error

2008-05-14 Thread Jim Bublitz
On Wednesday 14 May 2008 10:27, Darren Dale wrote: I am working on compiling pykde4-4.0.2-1. I have installed qt-4.4_rc1 (I know the final version is out, gentoo hasnt included it yet in their package manager) sip-4.7.5, qscintilla-2.2, and PyQt4-4.4. When I run configure.py, I get an error:

Re: [PyQt] configuring pykde4, error

2008-05-14 Thread Jim Bublitz
On Wednesday 14 May 2008 12:09, Darren Dale wrote: On Wednesday 14 May 2008 01:58:37 pm Jim Bublitz wrote: On Wednesday 14 May 2008 10:27, Darren Dale wrote: I am working on compiling pykde4-4.0.2-1. I have installed qt-4.4_rc1 (I know the final version is out, gentoo hasnt included

Re: [PyQt] configuring pykde4, error

2008-05-14 Thread Jim Bublitz
On Wednesday 14 May 2008 13:54, Darren Dale wrote: On Wednesday 14 May 2008 04:14:43 pm Jim Bublitz wrote: On Wednesday 14 May 2008 12:09, Darren Dale wrote: On Wednesday 14 May 2008 01:58:37 pm Jim Bublitz wrote: On Wednesday 14 May 2008 10:27, Darren Dale wrote: g++ -c -Wno

Re: [PyQt] Screenshots in linux

2008-05-05 Thread Jim Bublitz
On Monday 05 May 2008 13:22, Jake Richards wrote: Hello: Does anyone have any idea how I might select a region of my desktop and then take a screen grab of it? The screenshot example shows me how to grab the snapshot, but the hard part (at least for me) is changing my mouse cursor to some

Re: [PyQt] kdecore.KProcess.Communication enum not OR-able

2008-04-12 Thread Jim Bublitz
On Saturday 12 April 2008 06:04, Wilbert Berendsen wrote: Hi, The KDE docs say that you can OR the values of the kdecore.KProcess.Communication enum when start()ing a KProcess.[1] However that seems not to be possible: from kdecore import * p=KProcess() p.setExecutable('cat') True

Re: [PyQt] kdecore.KProcess.Communication enum not OR-able

2008-04-12 Thread Jim Bublitz
On Saturday 12 April 2008 06:04, Wilbert Berendsen wrote: Hi, The KDE docs say that you can OR the values of the kdecore.KProcess.Communication enum when start()ing a KProcess.[1] However that seems not to be possible: from kdecore import * p=KProcess() p.setExecutable('cat') True

Re: [PyQt] dbus and PyKDE

2008-04-08 Thread Jim Bublitz
KStandardAction doesn't seem to have the necessary c++ slot to python slot changes needed, this app doesn't work http://kubuntu.org/~jriddell/tmp/kapplication.py KStandardAction.close(self, self.hideMainWindow, self.actionCollection()) Try KStandardAction.close(self.hideMainWindow,

Re: [PyQt] PyKDE extra/kde4xx suggestion

2008-04-07 Thread Jim Bublitz
On Monday 07 April 2008 07:25, Adeodato Simó wrote: Hey Jim. Do you think it'd be possible to have the extra/kde4xx directories match only against the major (4.x) version, instead of the minor as well (4.x.y)? Speaking as a (Debian) packager, having the PyKDE packages become unbuildable

[PyQt] Re: [PyKDE] KConfigSkeleton/KConfigDialog combo not working

2008-04-03 Thread Jim Bublitz
On Thursday 27 March 2008 08:32, Adeodato Simó wrote: Hello. I'm having trouble porting my PyKDE3 KConfigSkeleton/KConfigDialog: it behaves weird in KDE4. I'm attaching a very small sample program. The weird behavior I'm observing is: (a) on the first run, when no testrc file exists

Re: [PyQt] PyKDE4-4.0.2-1 release available

2008-04-03 Thread Jim Bublitz
On Friday 21 March 2008 11:24, Danny Pansters wrote: I've been trying to get this to build on FreeBSD, but the build fails with both gcc34 and gcc42: Sorry for the slow response - my email to Phil got delayed by a screwup in my mail system. Phil noticed that the methods in the error output

[PyQt] Re: [PyKDE] KConfigSkeleton/KConfigDialog combo not working

2008-04-03 Thread Jim Bublitz
On Thursday 27 March 2008 08:32, Adeodato Simó wrote: Hello. I'm having trouble porting my PyKDE3 KConfigSkeleton/KConfigDialog: it behaves weird in KDE4. I'm attaching a very small sample program. The weird behavior I'm observing is: (a) on the first run, when no testrc file exists

Re: [PyQt] PyKDE4-4.0.2-1 release available

2008-04-03 Thread Jim Bublitz
On Saturday 29 March 2008 09:25, you wrote: On Friday 28 March 2008 19:50:04 Jim Bublitz wrote: On Friday 21 March 2008 11:24, Danny Pansters wrote: I've been trying to get this to build on FreeBSD, but the build fails with both gcc34 and gcc42: Sorry for the slow response - my email

Re: [PyQt] dbus and PyKDE

2008-04-03 Thread Jim Bublitz
On Thursday 27 March 2008 10:11, Jonathan Riddell wrote: I'm trying to get a printer applet into KDE (see kde-core-devel), however I can't actually use pyKDE because oxygen style and KApplication load QtDbus which causes the application to freeze when I'm using python-dbus. For example this

Re: [PyQt] dbus and PyKDE

2008-04-03 Thread Jim Bublitz
On Thursday 27 March 2008 10:11, Jonathan Riddell wrote: I'm trying to get a printer applet into KDE (see kde-core-devel), however I can't actually use pyKDE because oxygen style and KApplication load QtDbus which causes the application to freeze when I'm using python-dbus. For example this

Re: [PyQt] dbus and PyKDE

2008-04-03 Thread Jim Bublitz
On Thursday 27 March 2008 10:11, Jonathan Riddell wrote: I'm trying to get a printer applet into KDE (see kde-core-devel), however I can't actually use pyKDE because oxygen style and KApplication load QtDbus which causes the application to freeze when I'm using python-dbus. For example this

Re: [PyQt] KProcess setUsePty not there...

2008-04-03 Thread Jim Bublitz
On Wednesday 02 April 2008 08:00, Wilbert Berendsen wrote: Hi, I want to run a program that insists on reading from a terminal using KProcess (from within PyKDE), but it seems KProcess::setUsePty() does not exist: Python 2.5.1 (r251:54863, Mar 26 2008, 22:37:08) [GCC 4.1.2 (Gentoo 4.1.2

[PyQt] Re: [PyKDE] KConfigSkeleton/KConfigDialog combo not working

2008-03-27 Thread Jim Bublitz
On Thursday 27 March 2008 08:32, Adeodato Simó wrote: Hello. I'm having trouble porting my PyKDE3 KConfigSkeleton/KConfigDialog: it behaves weird in KDE4. I'm attaching a very small sample program. The weird behavior I'm observing is: (a) on the first run, when no testrc file exists

Re: [PyQt] error building PyKDE 4.0.2-1 - QTDIR not respected

2008-03-25 Thread Jim Bublitz
On Monday 24 March 2008 07:31, Giacomo Lacava wrote: Hi, I can't build PyKDE 4.0.2-1, even though KDE 4.0.2 is installed. It seems it cannot find the Qt include files, even though QTDIR is set to a symbolic link (/home/pyqt-trunk/share/qt4) pointing to the correct

Re: [PyQt] PyKDE4-4.0.2-1 release available

2008-03-25 Thread Jim Bublitz
On Friday 21 March 2008 11:24, Danny Pansters wrote: I've been trying to get this to build on FreeBSD, but the build fails with both gcc34 and gcc42: /usr/local/kde4/include/karchive.h:279: note: virtual bool KArchive::doWriteDir(const QString, const QString, const QString, mode_t, time_t,

Re: [PyQt] QtDBus not wrapped, trouble using dbus-python (communication hangs)

2008-03-13 Thread Jim Bublitz
On Thursday 13 March 2008 15:50, Adeodato Simó wrote: * Phil Thompson [Thu, 13 Mar 2008 22:03:08 +]: You need to create the QApplication before the main loop. Oh, changing that makes the example work, thank you. However, if I change QApplication to KApplication, I get this error:

Re: [PyQt] [PyKDE] One more issue with qt4 includes

2008-03-12 Thread Jim Bublitz
On Wednesday 12 March 2008 06:00, Adeodato Simó wrote: Well, I've now seen in the 4.0.2-1 tarball ChangeLog that says: Allow for separate dir for Qt includes in configure.py But I can't find that option. It would be indeed very handy. It should pickup the Qt include directories

[PyQt] PyKDE4-4.0.2-1 release available

2008-03-12 Thread Jim Bublitz
The PyKDE4-4.0.2-1 release is now available at riverbankcomputing.com. It should fix various install issues, including correct variable typing in some handwritten KIO.MetaData code, correctly obtaining the Qt include path from your PyQt4 install, and it now installs pykdeuic. It also provides a

Re: [PyQt] [PyKDE] One more issue with qt4 includes

2008-03-12 Thread Jim Bublitz
On Wednesday 12 March 2008 09:09, Adeodato Simó wrote: * Adeodato Simó [Wed, 12 Mar 2008 14:00:41 +0100]: Well, I've now seen in the 4.0.2-1 tarball ChangeLog that says: Allow for separate dir for Qt includes in configure.py But I can't find that option. It would be indeed very handy.

[PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Jim Bublitz
PyKDE4-4.0.2 is now available at riverbankcomputing.com. It includes some minor fixes to problems that were preventing PyKDE4 from building against KDE 4.0.2, the addition to kdecore of some global functions for retrieving version info about KDE and PyKDE4 (see Using PyKDE4 in the

Re: [PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Jim Bublitz
On Tuesday 11 March 2008 10:48, Detlev Offenbach wrote: I have a dual installation of KDE. KDE4 is installed alongside KDE3, which is my main desktop. The environment variable KDEDIR is set to /opt/kde3 (openSUSE 10.3). This makes configure.py to pick up KDE3 instead of KDE4. Here is an

[PyQt] PyKDE4 -4.0.2-1 release coming

2008-03-11 Thread Jim Bublitz
The release today has a few bugs which need fixing. The fixes are already done, but I need to test compile before uploading a new release, and that takes awhile - I have PyKDE4 on a slow machine. I also have a couple more potential bugs to check out. Although compiling on that machine doesn't

Re: [PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Jim Bublitz
On Tuesday 11 March 2008 11:39, Detlev Offenbach wrote: On Dienstag, 11. März 2008, Detlev Offenbach wrote: On Dienstag, 11. März 2008, Jim Bublitz wrote: PyKDE4-4.0.2 is now available at riverbankcomputing.com. It includes some minor fixes to problems that were preventing PyKDE4

Re: [PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Jim Bublitz
On Tuesday 11 March 2008 11:16, Detlev Offenbach wrote: On Dienstag, 11. März 2008, Jim Bublitz wrote: PyKDE4-4.0.2 is now available at riverbankcomputing.com. It includes some minor fixes to problems that were preventing PyKDE4 from building against KDE 4.0.2, the addition to kdecore

Re: [PyQt] PyKDE4-4.0.0 release available

2008-03-08 Thread Jim Bublitz
On Saturday 08 March 2008 08:34, Adeodato Simó wrote: * Jim Bublitz [Wed, 05 Mar 2008 09:46:33 -0800]: The first PyKDE4 tarball release is available at Riverbank Computing W00t. This release will build against KDE 4.0.0 or 4.0.1 FWIW it fails with 4.0.1 because that version has

Re: [PyQt] PyKDE4-4.0.0 release available

2008-03-08 Thread Jim Bublitz
On Saturday 08 March 2008 08:34, Adeodato Simó wrote: * Jim Bublitz [Wed, 05 Mar 2008 09:46:33 -0800]: The first PyKDE4 tarball release is available at Riverbank Computing W00t. This release will build against KDE 4.0.0 or 4.0.1 FWIW it fails with 4.0.1 because that version has

[PyQt] PyKDE-3.16.1 release

2008-03-05 Thread Jim Bublitz
A new PyKDE3 release is up at Riverbank Computing: http://www.riverbankcomputing.co.uk/pykde/index.php This release removes the need to patch the PyKDE3 source code, and should also remove any of the konsole_part issues some people were having (konsole_part is no longer supported). The

[PyQt] PyKDE4-4.0.0 release available

2008-03-05 Thread Jim Bublitz
The first PyKDE4 tarball release is available at Riverbank Computing http://www.riverbankcomputing.co.uk/pykde/index.php This release will build against KDE 4.0.0 or 4.0.1 (the difference between the two is a total of 3 new methods). With the exception of a couple of small bug fixes, this

Re: [PyQt] Re: PyQt

2008-03-05 Thread Jim Bublitz
On Wednesday 05 March 2008 16:29, Jon Chambers wrote: Thanks for the speedy responses! I'm now trying to create a non-paintEvent function that calls an update if necessary. But now when i do self.connect(self.timer, QtCore.SIGNAL('timeout()'), self.pollJoysticks()) Remove the parens from

Re: [PyQt] PyKDE4 on Windows

2008-02-07 Thread Jim Bublitz
On Thursday 07 February 2008 06:12, Saro Engels wrote: Hello all, As some of you might already know KDE applications are ported to MS Windows. Since I am currently trying to port the module scripts, I came by the kdebindings module as well. I added some scripts for sip and PyQt4 which seem

Re: [PyQt] PyKDE4 question

2008-02-05 Thread Jim Bublitz
On Tuesday 05 February 2008 01:41, Adeodato Simó wrote: * Jim Bublitz [Sun, 03 Feb 2008 09:52:40 -0800]: Hello Jim. I'm still working on my release (upgrading tools and documentation generation) Is this release intended to replace the current code in KDE's SVN? If so, is it somewhere

Re: [PyQt] A couple of question about PyKDE4

2008-02-05 Thread Jim Bublitz
On Tuesday 05 February 2008 11:49, Torsten Marek wrote: Hi all, Debian's KDE team has started to package KDE 4.0 quite some time ago, and they have asked me if I had plans to package PyKDE 4.0. Before I start out with PyKDE4, I have a couple of questions: - what is the preferred build

Re: [PyQt] PyKDE4 question

2008-02-03 Thread Jim Bublitz
On Sunday 03 February 2008 08:25, Detlev Offenbach wrote: Hi, I'd like to include KDE4 support into eric4 (4.2.x development) similiar to the way it was for eric3/PyKDE3. The docs for PyKDE4 give details about how to setup a KPrinter instance. However, I could not find it. Can anybody give

Re: [PyQt] What do I import in pykde 3.16 to access PyKDE.versionString ()?

2008-01-17 Thread Jim Bublitz
On Thursday 17 January 2008 10:42, Dog Walker wrote: The documentation says that both KDE.versionString and PyKDE.versionString are available since 3.11. I find KDE.versionString in kdecore on PyKDE 3.16 but cannot locate PyKDE.versionString. What should I import to access this function? It

Re: [PyQt] Changing systray icon while handling signal

2008-01-17 Thread Jim Bublitz
On Thursday 17 January 2008 08:27, Dog Walker wrote: Using pyKde3 I have a KSytemTray application. I want to change the systray icon (and tooltip) when I begin handling a menuitem and change again before returning. It appears that the icon/tooltip is only set after returning to pyKde. Can I

Re: [PyQt] Changing systray icon while handling signal

2008-01-17 Thread Jim Bublitz
On Thursday 17 January 2008 21:26, Dog Walker wrote: On Jan 17, 2008 2:23 PM, Jim Bublitz [EMAIL PROTECTED] wrote: On Thursday 17 January 2008 08:27, Dog Walker wrote: Using pyKde3 I have a KSytemTray application. I want to change the systray icon (and tooltip) when I begin

Re: [PyQt] simpler 'connect' function

2008-01-16 Thread Jim Bublitz
Just jumping in on the thread here,not replying to anyone in particular. I modified (polite word for hacked up) an example program written by Troy Melhase for PyKDE3, and what he had done was kind of interesting, I thought: sigClicked = SIGNAL (clicked ()) class MainWindow (KMainWindow):

Re: [PyQt] [PyKDE4] Default value for the second argument of KAction.setShortcut() does not seem to work

2008-01-12 Thread Jim Bublitz
On Saturday 12 January 2008 02:40, Simon Edwards wrote: Hi, Adeodato Simó wrote: This one time, I'm finding that KAction.setShortcut() can't work in Python without passing a value for the second argument, whereas this works in C++. Any chance you'd know why? Thanks. Looks like a bug in

Re: [PyQt] pykde4 using KConfig XT - tutorial

2008-01-12 Thread Jim Bublitz
On Saturday 12 January 2008 02:09, Simon Edwards wrote: Hi, Peter Liedler wrote: I am trying to autogenerate a configuration dialog with a KConfigSkeleton. I just can't get it working. What went wrong? Can you post me a sample, tutorial or something else on how to call a config

Re: [PyQt] konsoleFactory::className()

2008-01-11 Thread Jim Bublitz
On Friday 11 January 2008 06:48, D.H.J. Takken wrote: Hi, Is there anyone having a look at this issue please? I was asked which PyKDE I am using. I replied to the list, but no response ever since You can try editing configure.py. Find any reference assigning a value to 'opt_konsolepart'

Re: [PyQt] konsoleFactory::className()

2008-01-11 Thread Jim Bublitz
On Friday 11 January 2008 15:41, D.H.J. Takken wrote: Op Friday 11 January 2008 17:56:29 schreef Jim Bublitz: On Friday 11 January 2008 06:48, D.H.J. Takken wrote: Hi, Is there anyone having a look at this issue please? I was asked which PyKDE I am using. I replied to the list

Re: [PyQt] konsoleFactory::className()

2008-01-03 Thread Jim Bublitz
On Thursday 03 January 2008 10:40, D.H.J. Takken wrote: Op Wednesday 02 January 2008 19:05:56 schreef Jim Bublitz: On Wednesday 02 January 2008 06:38, D.H.J. Takken wrote: Hi, Are there any developers on this list that can have a look at this issue? Thanks! Try adding

Re: [PyQt] Rejoice, for PyKDE4 has landed in KDE SVN

2007-11-12 Thread Jim Bublitz
On Monday 12 November 2007 10:41, Adeodato Simó wrote: * Simon Edwards [Mon, 03 Sep 2007 08:37:52 +0200]: Almost all classes in kdelibs are covered, except Phonon which is waiting on imporved namespace support in SIP before we can add support. Hello. I'm not really following KDE4

Re: [PyQt] kapplication not quiting

2007-10-29 Thread Jim Bublitz
On Monday 29 October 2007 08:04, Andres Riancho wrote: Marcos, On 10/29/07, Marcos Dione [EMAIL PROTECTED] wrote: On Mon, Oct 29, 2007 at 09:36:14AM -0300, Andres Riancho wrote: And then, I try to kill the object like this: application.processEvents()

Re: [PyQt] PyQt book Rapid GUI Programming with Python and Qt now available

2007-10-25 Thread Jim Bublitz
On Thursday 25 October 2007 10:19, David Boddie wrote: On Thu Oct 25 12:56:25 BST 2007, Andreas Pakulat wrote: In Amazon Germany its even 63.3 euros, which makes about 90 us$, thats almost double the normal price of the book as shipped in the US. I could find it quite a bit cheaper at

Re: [PyQt] PyQt book Rapid GUI Programming with Python and Qt now available

2007-10-25 Thread Jim Bublitz
On Thursday 25 October 2007 18:20, David Boddie wrote: Note: As a reviewer, I received a copy free of charge, but I would have bought a copy anyway. I had to squeeze my reviewing duties in between work and real life, so I didn't really have the time to enjoy the book the first time around.

Re: [PyQt] identify a QTreeWidgetItem

2007-10-23 Thread Jim Bublitz
On Tuesday 23 October 2007 02:13, alteo_gange wrote: Hi everybody! I have created several QTreeWidgetItem and connected a signal itemClicked(QTreeWidgetItem *,int) on the QTreeWidget. treeWidget=QtGui.QTreeWidget(widget) ... itemTree1=QtGui.QTreeWidgetItem(treeWidget) ...

Re: [PyQt] PyQt4 snapshots don't build with -c -j

2007-10-15 Thread Jim Bublitz
On Monday 15 October 2007 09:44, Andreas Pakulat wrote: Hi, yesterday I fetched a new PyQt4 snapshot and as always let it build with -c -j 8. After about 30 minutes that it spent on sipQtGuipart0 I stopped it and increased to -j 20. Same problem with that number. Even -j 30 causes this. I

Re: [PyQt] loading arbitrary kparts

2007-10-08 Thread Jim Bublitz
On Monday 08 October 2007 07:41, Marcos Dione wrote: hi all. I've been playing with kparts a little and now I hit a wall. I try to load the proper part for a given url. the code I have looks like this: mime= KMimeType.findByURL(url, 0, False, False) mimeType= mime.name () # this trick

Re: [PyQt] loading arbitrary kparts

2007-10-08 Thread Jim Bublitz
On Monday 08 October 2007 16:16, Marcos Dione wrote: Running this: from kdecore import * from kio import * from kparts import * import sys KCmdLineArgs.init (sys.argv, sys.argv[0], testmime, , ) args= KCmdLineArgs.parsedArgs () app= KApplication () #app.exec_loop () for u in

Re: [PyQt] pykde crash on debian etch / import kparts or khtml

2007-09-28 Thread Jim Bublitz
On Friday 28 September 2007 07:56, jbd wrote: I've got a small problem with an application i'm trying to port from sarge to etch. Here is the minimal application which mimics the problem. It's a simple QDialog with a QPushButton which triggers a KDirLister and print the result on stdout. It

Re: [PyQt] a CustomEvent in KTMLPart crashes eventFilter

2007-09-07 Thread Jim Bublitz
One additional comment (that just occurred to me) - your version will work if you don't try to display a page (begin - write - end) before starting the event loop in KApplication. That's probably what's causing the crash. Jim ___ PyQt mailing list

Re: [PyQt] PyKDE4 build error - int/Py_ssize_t conversions

2007-09-06 Thread Jim Bublitz
On Tuesday 04 September 2007 04:42, Martin Böhm wrote: Hello list, there are some trouble with compiling the latest and greatest PyKDE4 (from KDE's on a 64bit machine, with Python 2.5.1. Namely it starts like this: sip/kdecore/kurl.sip: In function 'PyObject*

Re: [PyQt] PyKDE4 build error - int/Py_ssize_t conversions

2007-09-04 Thread Jim Bublitz
On Tuesday 04 September 2007 04:42, Martin Böhm wrote: Hello list, there are some trouble with compiling the latest and greatest PyKDE4 (from KDE's on a 64bit machine, with Python 2.5.1. Namely it starts like this: sip/kdecore/kurl.sip: In function 'PyObject*

Re: [PyQt] PyKDE4 Update

2007-09-04 Thread Jim Bublitz
On Tuesday 04 September 2007 10:09, Andreas Pakulat wrote: On 04.09.07 09:35:34, Jim Bublitz wrote: Someone is interested in doing plugin code for Kate, and needs kdelibs/interfaces/ktexteditor and also kdesdk/kate/interfaces/kate. I'm not sure about that, KTextEditor already provides

Re: [PyQt] PyKDE and undefined symbols

2007-09-04 Thread Jim Bublitz
On Tuesday 04 September 2007 15:16, Bart wrote: I've found some undefinied symbols in PyKDE-3.16 There are more errors like this one. Please check in your PyKDE module. How to solve this problem? Best regards. Bart. $ python Python 2.5.1 (r251:54863, Jul 31 2007, 09:34:25) [GCC 4.2.1

Re: [PyQt] PyKDE4 Update

2007-09-03 Thread Jim Bublitz
On Monday 03 September 2007 09:48, Andreas Pakulat wrote: Just out of curiosity: Does PyKDE4 also work without GUI/X11 when one restricts himself to kdecore module? (I suspect so, but wanted to make sure) I was going to say probably, but KApplication is in kdeui now, so it seems less

Re: [PyQt] PyKDE4 Update

2007-09-03 Thread Jim Bublitz
On Monday 03 September 2007 12:08, Hans-Peter Jansen wrote: Awesome, Jim. Am Montag, 3. September 2007 18:14 schrieb Jim Bublitz: The module lineup is about the same as PyKDE3, with a few changes. kfile has been rolled into the kio module, kabc/kresource are dropped, kmdi no longer exists

Re: [PyQt] PyKDE4 Update

2007-09-03 Thread Jim Bublitz
On Monday 03 September 2007 12:52, Andreas Pakulat wrote: On 03.09.07 21:08:15, Hans-Peter Jansen wrote: Am Montag, 3. September 2007 18:14 schrieb Jim Bublitz: The module lineup is about the same as PyKDE3, with a few changes. kfile has been rolled into the kio module, kabc/kresource

Re: [PyQt] PyKDE4 Update

2007-09-03 Thread Jim Bublitz
On Monday 03 September 2007 12:08, Hans-Peter Jansen wrote: Awesome, Jim. Am Montag, 3. September 2007 18:14 schrieb Jim Bublitz: The module lineup is about the same as PyKDE3, with a few changes. kfile has been rolled into the kio module, kabc/kresource are dropped, kmdi no longer exists

Re: [PyQt] Crash in KMainWindow.saveProperties() [small sample C++/Python code provided]

2007-08-28 Thread Jim Bublitz
On Tuesday 28 August 2007 11:10, Adeodato Simó wrote: Hello. I'm getting the same backtrace as mentioned in [1]. Please find attached a minimal C++ example application that successfully saves its state, and a Python equivalent that crashes when logging out of KDE. Note that the crash is not

Re: [PyQt] Presenting Minirok, a 2.5k lines app in PyKDE (and thanks!)

2007-08-25 Thread Jim Bublitz
On Saturday 25 August 2007 10:45, Adeodato Simó wrote: Hello there. Since it doesn't seem to exist a whole lot of free software applications written in PyKDE (at least I only count 4 in Debian/Ubuntu), I thought I'd drop a line to say that there's one more now. But first, I would really

Re: [PyQt] can't create a QPainter in QTreeWidget's paintEvent

2007-08-22 Thread Jim Bublitz
On Wednesday 22 August 2007 13:49, Devon wrote: Hi, folks - Here is a dummy version of a derived tree widget: class MyTreeWidget(QTreeWidget): def __init__(self, parent=None): QTreeWidget.__init__(self, parent) def paintEvent(self, e):

Re: [PyQt] problem with abstract classes

2007-08-13 Thread Jim Bublitz
On Sunday 12 August 2007 07:20, Diez B. Roggisch wrote: Hi, I'm in the process of wrapping the irrlicht 3d engine. So far, things have been working smoothly. However, now I stumbled over a problem that so far has not been willing to be disappearing, intensive gdb-use notwithstanding. There

Re: [PyQt] Multiple inheritance involving KXMLGUIClient does not work?

2007-08-11 Thread Jim Bublitz
On Saturday 11 August 2007 11:48, Adeodato Simó wrote: Hello. I'm having problems with KXMLGUIClient; in particular, it seems subclassing from it does not work when multiple inheritance is involved. See the script below. If this gets fixed, the attached example should work as well. (I seem

[PyQt] PyKDE4 progress report

2007-08-07 Thread Jim Bublitz
As of a few minutes ago, I have a working PyKDE4 version for KDE 4 beta 1 (3.92.0). Working in the sense that all the modules will load and I can run a simple app that puts up a window. If anyone is interested in playing with it (it's still very rough) drop me an email directly ([EMAIL

Re: [PyQt] KGlobalAccel, again

2007-08-04 Thread Jim Bublitz
On Friday 03 August 2007 11:50, Adeodato Simó wrote: Hello. I'm having the same problem as [1] when using KGlobalAccel. In a nutshell, the program crashes when pressing the configured global shortcut. [1] http://www.riverbankcomputing.com/pipermail/pyqt/2006-May/013268.html I tried

Re: [PyKDE] KHTML method returning null

2007-03-05 Thread Jim Bublitz
On Monday 05 March 2007 08:29, Paul Giannaros wrote: The documentation for KHTML's DOM::Document::getElementById ( http://api.kde.org/3.5-api/kdelibs-apidocs/khtml/html/classDOM_1_1Document. html#a20 ) show's that the method returns null when an element in the webpage by the given ID hasn't

Re: [PyKDE] Speeing up source file creation when using SIP with PyQt/PyKDE

2007-02-20 Thread Jim Bublitz
On Tuesday 20 February 2007 06:28, Paul Giannaros wrote: I'm creating bindings for a module in KDE (not included in PyKDE). While things work fine, running sip on the .sip file takes a long time on my machine -- ~15 seconds. It looks like it's processing all of the Qt/KDE sip stuff each time.

  1   2   3   4   5   6   7   >