Re: [PyKDE] IOSlaves - initial attempts

2003-07-08 Thread David Boddie
On Monday 07 July 2003 22:08, Kasper Souren wrote: I want to write a tutorial at some point but, in the meantime, I've packaged up a couple of examples which might be interesting to other people looking to do something similar: Cool. I am interested in controlling noatun myself. Can this

[PyKDE] Sipping from unknown classes

2003-07-13 Thread David Boddie
I've run into an interesting situation with my attempts to pass a QWidget into a Python function which is run in an embedded interpreter. I begin by receiving a pointer to a QWidget and a reference to a QString: KPanelApplet* return_instance( QWidget *parent, const QString configFile ) Later, I

[PyKDE] Unfinished business (IOSlaves and panel applets)

2003-07-28 Thread David Boddie
Despite my best intentions to document everything I've tried so far in this general area, I've not been able to achieve as much as I'd have liked. I've started writing up an IOSlaves tutorial for the Python Wiki at http://www.python.org/cgi-bin/moinmoin/IoSlavesTutorial which should probably

[PyKDE] Re: Panel Applet Problem

2003-09-18 Thread David Boddie
On Thu, 18 Sep 2003 00:26:33, Jim Bublitz wrote: On Wednesday September 17 2003 22:47, Troy Melhase wrote: On Wednesday 17 September 2003 21:21, Jim Bublitz wrote: but if kicker starts them automatically they run under kicker's pid), and David has identified at least one possible

[PyKDE] KControl modules - a warning

2003-09-21 Thread David Boddie
Back in August I released a framework for KControl modules which I was pretty sure didn't suffer from the same problems as panel applets. I thought that the Control Centre would only load and unload the shared libraries used for each module when required, ensuring that only one Python module was

Re: [PyKDE] KParts

2003-09-29 Thread David Boddie
On Monday 29 September 2003 20:51, Jim Bublitz wrote: On Monday September 29 2003 10:35, David Boddie wrote: The term KPart appears to cover a multitude of sins... I believe they're either KPart::ReadOnlyPart or KPart::ReadWritePart descendants. KParts are also different in KOffice than

[PyKDE] Thumbnail previews using Python

2003-10-06 Thread David Boddie
Those of you with PyKDE-3.8rc2 up and running might be interested in this piece of KDE which has just become accessible to Python. Although it could be regarded as something of a wasteful exercise to use Python to create those image previews seen in Konqueror, it has been quite an interesting

[PyKDE] Re: newest Version

2003-10-29 Thread David Boddie
Apologies to confused readers: this discussion started off-list but now seems an appropriate point to bring it on-list. I hope Roland doesn't mind me using one of his messages as a device to do this. On Wednesday 29 October 2003 07:42, Roland Schulz wrote: Background for new readers: Roland has

[PyKDE] Re: newest Version

2003-10-29 Thread David Boddie
On Wed Oct 29 22:04:01 2003, Roland Schulz wrote: On Wednesday 29 October 2003 21:43, you wrote: I think that, if we can use a PyKPanelApplet-style approach, then we can avoid sip. I finally understand what you (and probably Jim) mean!! But in the case of PyKPanelApplet the Python

[PyKDE] PyKDE Components preliminary release

2003-11-17 Thread David Boddie
Jim's release of PyKDE 3.8 took me by surprise and I've been racing to catch up with this assortment of prototype components for PyKDE: http://www.boddie.org.uk/david/Projects/Python/KDE/index.html Documentation is currently minimal and is mainly found through the installer. The quality of

Re: [PyKDE] Announce: Guidance admin tools

2003-11-21 Thread David Boddie
On Thu, 20 Nov 2003 21:10:11, Simon Edwards [EMAIL PROTECTED] wrote: Slightly off-topic perhaps, but I've just put up the first public release of Guidance, a collection system administration tools written in Python and PyQt/PyKDE. So, if anyone is looking for example code... :-) Always

[PyKDE] Interesting news for Py[Qt|KDE] strategists

2003-12-15 Thread David Boddie
Normally, I wouldn't just dump random links onto a mailing list, but this appears to be an interesting project which might, in time, solve some of the nastier configuration issues encountered by both new and experienced users: http://desktop.kdenews.org/strategy.html

Re: [PyKDE] undefined KAcceleratorManager::manage(QWidget *)

2003-12-17 Thread David Boddie
On Tue, 16 Dec 2003 20:22:26, Patrick Stinson [EMAIL PROTECTED] wrote: any idea why KAcceleratorManager::manage(QWidget *) would be undefined in libkdecorecmodule after building pykde? I have only one libkdecore and libkdecorecmodule on my machine. I'm using: qt-3.2.2

Re: [PyKDE] QGLWidget rendering problems

2003-12-17 Thread David Boddie
On Wed, 17 Dec 2003 16:05:01, Tom Badran [EMAIL PROTECTED] wrote: File /home/tb100/development/wizard/src/imagedisplay.py, line 61, in paintGL glTexImage2D(GL_TEXTURE_2D, 0, 3, tex.width(), tex.height(), 0, GL_RGBA, GL_UNSIGNED_BYTE, tex.bits() ) ValueError: expect source sequence

Re: [PyKDE] QGLWidget rendering problems

2003-12-18 Thread David Boddie
On Thursday 18 December 2003 18:29, Phil Thompson wrote: On Thursday 18 December 2003 12:36 am, David Boddie wrote: Getting this sort of information from a QImage object at the Python level appears to be difficult since there isn't an equivalent to the QImage.loadFromData method

Re: [PyKDE] QGLWidget rendering problems

2003-12-18 Thread David Boddie
On Thursday 18 December 2003 23:30, Phil Thompson wrote: The problem is '\0' termination. SIP assumes uchar * and char * refer to C strings unless the length is also passed as a parameter at the C/C++ level - in which case you have to use the /Array/ and /ArraySize/ tags. To convert in the

Re:[PyKDE] un-connectable signals (probably sip bug)

2003-12-20 Thread David Boddie
On Fri, 19 Dec 2003 10:31:55, Jim Bublitz wrote: On Thursday December 18 2003 10:44, Stefan Bund wrote: I have come across the following Problem: I cannot connect python methods to several KDE signals: KWinModule::windowAdded(WId) is one,

Re: [PyKDE] KControl Modules II (Simon Edwards)

2004-01-03 Thread David Boddie
On Sat, 3 Jan 2004 11:45:34, Simon Edwards [EMAIL PROTECTED] wrote: Hello all, Happy New Year! The last we touched this issue we were kind of stuck with python kcontrol modules kind of working except when you have more than one python module. Trying to run a second python module in the same

Re: [PyKDE] build problems.

2004-01-16 Thread David Boddie
On Thu, 15 Jan 2004 09:38:17, Dan Keshet wrote: I'm running debian with standard .debs for all the packages except pyKDE. Output below. Any help would be much appreciated. [...] File build/discover.py, line 608, in discoverQt3 self.qtIncl = DiscoverQt3Incl (qglobal.h,

Re: [PyKDE] KControl modules problem

2004-01-17 Thread David Boddie
Simon, [I'm cutting and pasting from the archives because I receive list messages in digest form, and so your message hasn't arrived yet. :-)] I've been busy with using Python in KControl and it is mostly working fairly after integrating David build code in my distutils build system. Anyway,

Re: [PyKDE] QDialog geometry problem

2004-03-11 Thread David Boddie
On Wed, 10 Mar 2004 21:55:37 -0600, Mike Meyer [EMAIL PROTECTED] wrote: I'm trying to set up a simple dialog box, with a QLineEdit and a couple of QPushButtons. The init code is: class FindDialog(QDialog): def __init__(self, parent = None, name = None, modal = False, flags = 0):

Re: [review] Re: [PyKDE] Embedded python

2004-06-02 Thread David Boddie
On Wed Jun 2 15:28:00 2004, Kevin Schmidt [EMAIL PROTECTED] wrote: However, if I try: from qt import * q=QObject() p=QObject(p) print p.parent() It crashes when I try to compile (via Py_CompileString(c_line, , Py_single_input)) the print p.parent() line. I would have thought that the

Re: [PyKDE] Implementing QSimpleRichText

2004-08-13 Thread David Boddie
On Thu, 12 Aug 2004 21:02:46, Eron Lloyd wrote: Does anybody have an example of how to implement rich text inside of a QListViewItem? I can't wrap my head around the C++ examples I've found enough to translate what needs to be done. It seems a little more tricky when not implemented inside a

Re: [PyKDE] Singleshot problems in QThreads on Windows.

2004-08-22 Thread David Boddie
Sorry not to have joined this discussion before. It's quite a surprise that I might have something worthwhile to say about threading! On 20 Aug 2004 17:32:21, Truls A. Tangstad wrote: On Fri, Aug 20, 2004 at 04:23:09PM +0100, Toby Dickenson wrote: My workaround seems to be working well for

[PyKDE] Re: Singleshot problems in QThreads on Windows.

2004-08-23 Thread David Boddie
On Mon, 23 Aug 2004 10:44:30, Truls A. Tangstad wrote: On Sun, Aug 22, 2004 at 04:34:09PM +0200, David Boddie wrote: My current solution is to post events from the non-GUI QThread, but not include any data with them. The data is stored separately in a Python object. I think

Re: [PyKDE] PyKDE 3.11.3 Release

2004-08-29 Thread David Boddie
On Wed, 25 Aug 2004 17:00:13, Jim Bublitz wrote: The PyKDE 3.11.3 release should be up at riverbankcomputing.co.uk within the next day or so. This release has only 2 significant changes: 1. Fixed enum in khtml_part.sip that caused build problems for KDE 3.3.0 with sip 3.10.2 (sip 4

Re: [PyKDE] Status of panel applets?

2004-08-29 Thread David Boddie
On Fri, 27 Aug 2004 14:17:33, Jim Bublitz wrote: On Friday 27 August 2004 12:35, Maurizio Colucci wrote: What is the current status of panel applets? That's a good question. Between David, Simon and myself, none of us has really taken charge of getting panel applets (and related

Re: [PyKDE] Event chaining and passing parameters

2004-09-16 Thread David Boddie
On Wed, 15 Sep 2004 13:54:04, Timothy Grant wrote: I have QListView that connects to a context menu (QPopupMenu) and passes the item(s) to my showPopup method. The QActions that populate the QpopupMenu then call their own processing methods. You might need to post some code that

[PyKDE] PyKDE components

2004-09-19 Thread David Boddie
I've uploaded an interim release of some PyKDE components. I don't have a lot of time to work on these, so getting them out into the wild seems like a fairly good idea at the moment. The package now includes a version of libpythonize but no longer provides any support for panel applets or

Re: [PyKDE] Threading QApplications. Possible?

2004-09-21 Thread David Boddie
On Mon, 20 Sep 2004 20:52:01, Trost Johnson wrote: Suppose the minimal program: def foo(): app=QApplication(sys.argv) button=QPushButton(Hello World, None) app.setMainWidget(button) button.show() app.exec_loop() And I say thread.start_new_thread (foo,

Re: [PyKDE] Connect syntax.

2004-09-23 Thread David Boddie
On Wed, 22 Sep 2004 20:11:37, Sundance wrote: I heard Phil Thompson said: I have a policy of not (if at all possible) changing or enhancing the API. C++ Qt: SomeWidget::SomeWidget () { // ... connect (this, SIGNAL(whatever()),// -- look!

Re: [PyKDE] more complex rich text / HTML

2004-10-15 Thread David Boddie
On Fri, 15 Oct 2004 01:36:23, Andrew Dalke wrote: My crazy thought is to embed a native HTML widget for the different platforms, so that I use IE to display under MS Windows, Safari for Mac, and Konqueror for Linux. (That's all I need to support.) While the last is definitely possible, I

Re: [PyKDE] Trouble figuring out QCanvas and QCanvasView

2004-10-06 Thread David Boddie
On Tue, 05 Oct 2004 23:28:39, Bryan O'Sullivan wrote: I am unable to figure out how to draw into a QCanvas and have it show up correctly in a QCanvasView. I've tried looking at both C++ and Python examples, but the examples are invariably so complex that it's impossible to figure out

Re: [PyKDE] Trouble figuring out QCanvas and QCanvasView

2004-10-07 Thread David Boddie
On Wed, 06 Oct 2004 11:47:03, Bryan O'Sullivan wrote: On Wed, 2004-10-06 at 03:32 -0700, David Boddie wrote: That's disappointing to hear. Think of it as an opportunity to write an article for one of the developerworks, onlamp and so on sites :-) Well, good luck

Re: [PyKDE] Problem resolving widget's class

2004-11-01 Thread David Boddie
Fredrik Juhlin wrote: From what we can tell though, it only happens to widgets that comes from C++ land, so to speak. That is, widgets that are created by QWidgetFactory, the listbox you get when calling QComboBox.listBox(), the header from QListView.header() etc. This has made us

Re: [PyKDE] Problem resolving widget's class

2004-11-02 Thread David Boddie
On Tue Nov 2 16:34 2004, Fredrik Juhlin wrote: On Tuesday 02 November 2004 16.07, David Boddie wrote: That's weird. I can run it for some time without getting an error. Do you get an error such as this: label label_test_17 (__main__.qt.QWidget object at 0x400970ec) isn't a QLabel

Re: [PyKDE] Python IOSlaves

2004-11-17 Thread David Boddie
On Wed, 17 Nov 2004 18:48:09, Luke Monahan wrote: I have downloaded the files pykde-components-2004-01-20.tar.bz2 from David's site and set about installing his IOSlaves so I can play around with them. I uploaded a later version but didn't link it in. If you look at that page again you'll see

Re: [PyKDE] code generation error

2004-11-22 Thread David Boddie
On Sun, 21 Nov 2004 07:59:53, Shuli Hershberg wrote: Generating the C++ source for the kdecore module... sip: KLockFile::Ptr is undefined Error: Unable to create the C++ code. You may find the following Google search useful:

[PyKDE] Missing classes (sip-4.2rc1 and PyKDE-3.11.3)

2005-01-29 Thread David Boddie
Has anyone else tried to use PyKDE with sip-4.2rc1 yet? My experience is that I can get the modules built and installed, but that not all of the classes are present when various modules are imported. For example, in kdecore, I find that KStdAction is not found in kdeui (this breaks the

[PyKDE] Re: PyQt v4 Roadmap

2005-02-17 Thread David Boddie
On Thu, 17 Feb 2005 15:22:26, Phil Thompson wrote: The separate Qt v4 libraries will be wrapped as separate Python modules. The module names will be the same as the corresponding library (eg. QtCore, QtGui) and be grouped as a single Python package called PyQt4. The suggested programming

[PyKDE] Re: iterating over a QListView

2005-02-22 Thread David Boddie
On Tue, 22 Feb 2005, Christopher J. Bottaro wrote: Right, but what I meant was does PyQt turn those iterator classes into Python iterables.  By that I mean, can they be used in a for loop such as: # lv is a QListView for lvi in QListViewItemIterator(lv):   # do something with the list view

Re: [PyKDE] Can't compile PyKDE

2005-02-25 Thread David Boddie
On Thu, 24 Feb 2005 11:54:38, Joe Duncan wrote: When running python configure.py make I get this: PyKDE version 3.11.3 [...] Python version is 2.3.4 [...] sip version is 4.1.1 (4.1.1) [...] Qt version is 3.3. [...] PyQt version is 3.13 (3.13.0) [...] KDE version is

Re: [PyKDE] QAccel automatically sends signal

2005-04-14 Thread David Boddie
On Thu, 14 Apr 2005 16:05:07, Alfred Young wrote: self.shortcutKey = QAccel(self) id = self.shortcutKey.insertItem(Qt.Key_Enter) self.shortcutKey.connectItem(id, self.defaultButton, SLOT(self.defaultButton.clicked())) However as soon as I invoke connectItem() it appears that the

Re: [PyKDE] wx PyShell equivalent written in Qt ?

2005-04-29 Thread David Boddie
On Thu, 28 Apr 2005 16:26:56, Fabien Meghazi wrote: Anyone knows if there's a wxWidget PyShell's equivalent written in Qt ? I went looking for screenshots of this widget but only found class documentation, so I don't know exactly what you want. Still, I've been experimenting with PyQt-based

Re: [PyKDE] ANN: PyKDE Extensions 0.1.0

2005-05-16 Thread David Boddie
On Sun, 15 May 2005 20:35:45, Simon Edwards wrote: PyKDE Extensions is a collection of software and Python packages to support the creation and installation of KDE applications. http://www.simonzone.com/software/pykdeextensions/ First release is now available for testing and trying out.

Re: [PyKDE] ANN: PyKDE Extensions 0.1.0

2005-05-16 Thread David Boddie
On Tue, 17 May 2005 00:16:31, Simon Edwards wrote: On Monday 16 May 2005 15:29, David Boddie wrote: The only problem I had with installation was that the Python modules were installed in a python2.3/site-packages directory created specially by the setup script, rather than in my existing

Re: [PyKDE] Konqueror plugins in Python

2005-05-22 Thread David Boddie
On Saturday 21 May 2005 21:49, Jim Bublitz wrote: I haven't done anything with konqueror, and a quick look at the file system didn't prove very enlightening. You might want to contact David Boddie [EMAIL PROTECTED], as he's played around with konqueror plugins in the past. I think he's posted

Re: [PyKDE] QScintilla and Qt4

2005-07-06 Thread David Boddie
On Tue, 05 Jul 2005 18:46:32, Thomas Fjellstrom wrote: And you were 100% correct. It now works, but is still using the qt3 support classes (I'll fix that eventually). And I'm getting this odd warning: QPainter::begin: Widget painting can only begin as a result of a paintEvent Yes, you shouldn't

Re: [PyKDE] QScintilla and Qt4

2005-07-06 Thread David Boddie
On Wednesday 06 July 2005 20:04, Thomas Fjellstrom wrote: I haven't changed the drawingcode (in PlatQt.cpp) much at all. So just look in there for how QScintilla works.. Basically, It has a Surface object that gets instantiated in paintEvent, and the drawing happens in calls to other

Re: [PyKDE] KPart problem

2005-07-24 Thread David Boddie
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] Borderless Windows

2005-08-10 Thread David Boddie
On Tue, 9 Aug 2005 11:02:56 +0530, The Abattoir[!] wrote: I want help with trying to make windows borderless. For example, in the file pyKHTMLPart.py, in the examples folder of the PyKDE package, I changed the constructor call from parts=pyPartsMW(None,pyParts) to

Re: [PyKDE] Simple KHtml program crashing at exit

2005-08-11 Thread David Boddie
On Wed, 10 Aug 2005 10:16:32, Ismail Dönmez wrote: I have a very simple Khtml program like this ...] from qt import * from hwidget import HWidget import khtml from kdecore import KApplication, KCmdLineArgs, KAboutData class HtmlWidget(HWidget): def __init__(self, parent=None,

Re: [PyKDE] Simple KHtml program crashing at exit

2005-08-11 Thread David Boddie
On Thursday 11 August 2005 19:23, Jim Bublitz wrote: (Somehow I received this with the leftmost characters missing on every line - data compression?) It's the usual result when various pieces of software disagree on the way text is encoded. I usually try very hard to avoid getting that

Re: [PyKDE] ANN: New Releases of PyQt, PyKDE, SIP and QScintilla

2005-08-31 Thread David Boddie
On Tue, 30 Aug 2005 20:32:50 +0100, Phil Thompson wrote: The following have been released and are available at the usual place... PyQt v3.15 PyKDE-snapshot20050829 SIP v4.3 QScintilla v1.6 Most of the work has been under the covers - supporting Python's cyclic garbage collector in

Re: [PyKDE] ANN: New Releases of PyQt, PyKDE, SIP and QScintilla

2005-09-04 Thread David Boddie
On Thursday 01 September 2005 09:10, Phil Thompson wrote: I'm not sure where the changes have occurred but, without applying any patches of my own, I now find that: * None of my KPart plugins work any more - the receivers for the KActions I set up are never called. I'm still chasing

Re: [PyKDE] ANN: New Releases of PyQt, PyKDE, SIP and QScintilla

2005-09-06 Thread David Boddie
On Monday 05 September 2005 09:30, Phil Thompson wrote: Just to clarify - the second argument to sip.transferto() being None means that the wrapper gets garbage collected. If you pass a wrapped object instead then that wrapped object is given a reference to the object passed as the first

Re: [PyKDE] KPDF KPart

2005-09-21 Thread David Boddie
On Wed Sep 21 17:57:58, Rajeev J Sebastian wrote: I am trying to use the KPDF KPart in my application. So far, I have been successful in using KHTML Part, and so I want to go further. I am using the following code: self.viewTB = createReadOnlyPart(libkpdfpart, self, Kpdf,

Re: [PyKDE] KPDF KPart

2005-09-23 Thread David Boddie
On Wed, 21 Sep 2005 19:22:52, Rajeev J Sebastian wrote: On Wednesday 21 September 2005 7:14 pm, İsmail Dönmez wrote: On the other hand, I did have to use KApplication instead of QApplication. I guess this was why my code was segfaulting. I didn't have to change my KPart loading code

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-18 Thread David Boddie
On Tue, 18 Oct 2005 18:24:08, Phil Thompson wrote: I'm wondering whether QString should be dropped in PyQt4 in order to make it more Pythonic. On one hand, it sounds like a nice idea. It would mean that you don't have to think about manually converting the ones you think you'll need and

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-19 Thread David Boddie
On Wednesday 19 October 2005 09:47, Phil Thompson wrote: On Wednesday 19 October 2005 1:17 am, David Boddie wrote: * Maintenance of QStrings passed to Python implemented methods - sometimes it's good to keep things in the same form that they were supplied in, although maybe it's

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-20 Thread David Boddie
On Thu, 20 Oct 2005 03:21:33, Giovanni Bajo wrote: In my humble opinion, PyQt should stay as close to C++ Qt as possible. It's a binding. There are many, many, many places where the Qt API could be made more Pythonic (just stretch your imagination), but those can find their place in a library

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-21 Thread David Boddie
On Fri, 21 Oct 2005 07:21:46, Patrick K. O'Brien wrote: Phil Thompson wrote: I'm totally unsympathetic to the idea of a *separate* Pythonic API to Qt. The Python GUI toolkit market is fragmented enough as it is - this would only add more confusion for (relatively) little benefit. I agree

Re: [PyKDE] installig of SIP

2005-10-25 Thread David Boddie
On Tue, 25 Oct 2005 11:24:48, Nguessan KRE wrote: Please help me. I can not installing SIP-4.3.1 on my computer. bellow the message of error: [EMAIL PROTECTED] sip-4.3.1]# python configure.py -l qt This is SIP 4.3.1 for Python 2.4.2 on linux2. [...] I may be completely wrong here,

Re: [PyKDE] designer: passing an argument to a slot?

2005-11-04 Thread David Boddie
On Tue, 1 Nov 2005 15:40:37, Peter J. Bismuti wrote: This does not work. It gives a name error saying that the global variable value is not defined. How can you access the value of the argument? Thanks in advance. void Dialog::ScaleScrollBar_ValueChanged(int value) { valueString =

Re: [PyKDE] PyQt4 Update

2005-12-03 Thread David Boddie
On Thu, 1 Dec 2005 22:34:41, Phil Thompson wrote: Tonight's PyQt4 snapshot has the QtGui module 99% complete. This means PyQt4 is now officially useful, but note the following... - untested on Windows - untested against Qt v4.1 - untested against GCC v4 The Qt tutorials have been ported

Re: [PyKDE] PyQt4 Update

2005-12-03 Thread David Boddie
On Saturday 3rd December, Phil Thompson wrote: On Saturday 03 December 2005 5:35 pm, David Boddie wrote: I've been looking at the examples in the widgets subdirectory, and converting them in alphabetical order. One issue that's arisen so far is that the QComboBox wrapper is missing a clear

Re: [PyKDE] PyQt4 Update

2005-12-04 Thread David Boddie
On Sunday 04 December 15:01:20, Phil Thompson wrote: On Saturday 03 December 2005 6:08 pm, Baz Walter wrote: The only very minor issue I came across was the following error when trying to pass Qt.AlignCenter to QLabel.setAlignment: TypeError: argument 1 of QLabel.setAlignment()

Re: [PyKDE] PyQt4 Update

2005-12-04 Thread David Boddie
On Sunday 04 December 2005 21:25, Phil Thompson wrote: Yes - I shouldn't have used the word bug. SIP doesn't support automatic type converters like C++ does, so I've been adding %ConvertToTypeCode in various places to make things a bit more convenient. This is one such place. I can't

Re: [PyKDE] PyQt4 Update

2005-12-06 Thread David Boddie
On Mon, 5 Dec 2005 16:21:56, Phil Thompson wrote: On Saturday 03 December 2005 6:56 pm, David Boddie wrote: Just to clarify: subclasses of QAbstractListModel that don't reimplement columnCount() should automatically inherit the base class's behaviour and return 1. It seems

Re: [PyKDE] Porting Qt4 c++ examples to Python

2005-12-09 Thread David Boddie
On Fri Dec 9 12:12:09, Douglas Soares de Andrade wrote: Talking with Phil about a way to help, he told me that the best way would be porting existing C++ examples to Python examples. As so as i received his mail, i started working in some examples. Same here. I hope we didn't duplicate too

Re: [PyKDE] Porting Qt4 c++ examples to Python

2005-12-09 Thread David Boddie
On Fri Dec 9 19:15:47, Baz Walter wrote: i've almost completed tools/settingseditor and the three examples in the layouts folder. i was also thinking of doing xml/dombookmarks, if no one else has started on that... I created a page on the PyQt Wiki so that we don't duplicate effort:

Re: [PyKDE] Seperating logic code from gui code?

2005-12-15 Thread David Boddie
On Thu, 15 Dec 2005, Arthur Pemberton wrote: I am new to Qt programming and PyQt. I am attempting to build a client for AllofMp3.com, I already have most of the logic code down. But now I want to build a GUI with PyQt. What rules should I follow to make the program useable in the console, but

Re: [PyKDE] Seperating logic code from gui code?

2005-12-18 Thread David Boddie
On Fri, 16 Dec 2005, Arthur Pemberton wrote: Ideally, the console client would be simply a downloader, while the GUI would use the same mechanisms to access the data, but give more interactivty (renaming, prioritizing of downloads, etc.) Not sure if this is the information you meant that was

Re: [PyKDE] PyQt4 + Qt4.0.1-debug or Qt4.1.0

2005-12-21 Thread David Boddie
On Thu Dec 22 01:09:37, Andreas Pakulat wrote: On 21.12.05 23:05:54, Phil Thompson wrote: On Wednesday 21 December 2005 10:51 pm, Andreas Pakulat wrote: 2. Is PyQt4 currently already supposed to work with Qt4.1.0? I guess not, because compiling with it gives an error about the

Re: [PyKDE] New PyKDE snapshot - help needed

2006-01-22 Thread David Boddie
On Sat, 21 Jan 2006 16:49:20, Jim Bublitz wrote: On Saturday 21 January 2006 14:11, Baz Walter wrote: On Saturday 21 Jan 2006 16:45, you wrote: No - I've never seen that happen. I'll have to take a look at configure.py and see what might cause that, but I can't imagine what I just

Re: [PyKDE] PyKDE example app(s).. what do *you* have? :):)

2006-02-17 Thread David Boddie
On Wed, 15 Feb 2006 20:18:57, Patrick Stinson wrote: You're right, the more code we get out there the better, especially because success with python is all about reading and learning (again, my opinion). I'm all for putting examples up on the Wiki: http://www.diotavelli.net/PyQtWiki Even

Re: [PyKDE] Dropping SIGNAL() and SLOT() in PyQt4?

2006-02-19 Thread David Boddie
On Sun Feb 19 15:30:53, Giovanni Bajo wrote: Phil Thompson phil at riverbankcomputing.co.uk wrote: (In fact I don't see why Qt still needs SIGNAL() and SLOT() - maybe the speed penalty of the alternative is more an issue at the C++ level.) Nah. There's boost::signal, which is a

Re: [PyKDE] tableview and model

2006-02-25 Thread David Boddie
On 25 Feb 2006 11:26:13, Olivier Fournier wrote: thank's for your help ...         self.model = QtGui.QStandardItemModel(3,3)         self.TVTable.setModel(self.model) ... is more correct... You should also be able to do this: model = QtGui.QStandardItemModel(3,3,self)

Re: [PyKDE] My thinking still wrong?

2006-02-26 Thread David Boddie
On Sat, 25 Feb 2006, Andreas Pakulat wrote: On 25.02.06 09:55:18, Tina Isaksen wrote: So I guess I've fallen in the trap of old-time thinking again... This time it's actually not python-specific wrong-thinking ;-);-) This would've happend to you in C++, Java and any other threaded-language

Re: [PyKDE] My thinking still wrong?

2006-02-26 Thread David Boddie
On Sun Feb 26 19:31:09, Andreas Pakulat wrote: On 26.02.06 18:24:27, David Boddie wrote: Many people regard threading as a fairly advanced technique, although Python's own threading module makes it look almost trivial. I find Qt's own threading-implementation quite easy to use too. I

Re: [PyKDE] Printing using QPrinter

2006-03-03 Thread David Boddie
On Wed, 01 Mar 2006 23:49:12, Fabian Steiner wrote: I am currently working on an application where the user is able to create new worksheets and to delete existing ones. All of these worksheets have the same structure, only some values should be changed. [...] The values are stored in a

Re: [PyKDE] QProcess: more guidance needed

2006-03-06 Thread David Boddie
On Mon, 06 Mar 2006, Tina Isaksen wrote: I need some QProcess pointers again I'm afraid. No problem. It's a learning process for me, too! I need to know when the process awaits input on it's stdin. This could be difficult. I've been experimenting with QProcess::Communication flags but I

Re: [PyKDE] QProcess: more guidance needed

2006-03-08 Thread David Boddie
On Wed, 08 Mar 2006 08:58:07, Tina Isaksen wrote: Ok, so I managed to isolate the yes or no option regardless of language. But I can't seem to feed it correctly to the apt-get process. The code: [...] I do feed 'something' that apt-get recieves because it aborts. It would not have done that

Qt Designer custom widgets (was Re: [PyKDE] Relaise of PyQt4?)

2006-03-08 Thread David Boddie
On Mon, 6 Mar 2006 14:07:44, Phil Thompson wrote: The first (and only planned) beta will be out this month. Current snapshots should be perfectly usable - but that's for others to say. All the structural changes are now in place, it's now only a question of going through the (very short)

Re: [PyKDE] Sugestions for PyQt4

2006-03-20 Thread David Boddie
On Mon, 20 Mar 2006 10:26:27, Eric Jardim wrote: - Pythonic Qt properties: instead of using things like: isEnabled() and setEnabled(), properties could be acessed like python real properties, I mean, just enabled. The functions could still be mapped anyway. This could be added or enabled

Re: [PyKDE] Re: How to embed Python in C++

2006-03-25 Thread David Boddie
On Fri, 24 Mar 2006 17:40:00, Eric Jardim wrote: I found a way of getting Python extended widgets. I will post here the way I did and I would like to know if this is the right, easy and safer way of doing this: I've added comments below. Supose this is a QWidget subclass and that I wrote a

[PyKDE] The old PyKDE SourceForge site

2006-03-25 Thread David Boddie
I've been thinking about ways to share and distribute code for PyQt and PyKDE, both for various low-level projects and for higher-level components. Initially, I wanted to use the PyQt Wiki (http://www.diotavelli.net/PyQtWiki) to share code and design ideas, but it seems like it's really only

Re: [PyKDE] The old PyKDE SourceForge site

2006-03-25 Thread David Boddie
On Sunday 26 March 2006 00:04, Jim Bublitz wrote: I haven't seen Jonathan around in a while, and the sourceforge site isn't getting any use. If you have a use for it and would like admin privileges, I can set that up, I think, assuming I can get access (I think I can). I'm not a good

Re: [PyKDE] Re: How to embed Python in C++

2006-03-27 Thread David Boddie
On Saturday 25 March 2006, I wrote: On Fri, 24 Mar 2006 17:40:00, Eric Jardim wrote: [Defining a factory function] It's easy to define a single function to do this: PyRun_String(from PyQt4 import QtGui\nimport sip\n def __embedded_factory__create__(parent = None):\n

Re: [PyKDE] PyQt4: setPaletteBackgroundColor

2006-03-29 Thread David Boddie
On Wed Mar 29 02:19:36, Patrick Stinson wrote: this is interestin because the palette still doesn't propogate to the widgets' children. A common base class for all pk widgets. from PyQt4.QtGui import QFrame, QPalette class PKWidget(QFrame): Conveinience class

[PyKDE] EuroPython 2006

2006-04-08 Thread David Boddie
This year the EuroPython conference will be held at CERN (near Geneva). The call for proposals and abstracts for EuroPython 2006 was recently published, and it should now be possible to submit abstracts: http://www.europython.org/sections/tracks_and_talks/call-for-proposals Information about

Re: [PyKDE] EuroPython 2006

2006-04-09 Thread David Boddie
On Sun, 09 Apr 2006 10:25:08, Torsten Marek wrote: David Boddie wrote: This year, I'd like to try and give a talk about some aspect of PyQt and/or PyKDE and I wondered if anyone else intends to do something similar. It would be good to see some talks about using Python with Qt and KDE

Re: [PyKDE] (transparent) PIL image to QImage conversion?

2006-04-23 Thread David Boddie
On Thu, 6 Apr 2006 16:37:07, ORCAN OGETBIL wrote: My problem is, the JPEG encoding kills the transparency of my PNG images. When I do RAW encoding, I get nothing from the QByteArray object. I also couldn't get the thing work with a GIF encoding. PIL's tostring() function doesn't support PNG

Re: [PyKDE] Re: Q___Style wrapper

2006-05-11 Thread David Boddie
On Thu, 11 May 2006 15:12:17, Mike Rovner wrote: I wrapped QWindowsStyle (attached) and after exiting test application from PyQt4.QtGui import * app = QApplication([]) app.setStyle(QWindowsStyle()) lbl = QLabel(Windows) lbl.show() app.exec_() got a crash: (gdb) where #0  

Re: [PyKDE] StringIO and QImage

2006-06-01 Thread David Boddie
On Thu Jun 1 18:57:00 MEST 2006, Aljosa Mohorovic wrote: i'm using PIL to open an image file and then convert it to PNG image and now i would like to display that image in Qt. does anybody know how to load StringIO.StringIO instance (in-memory representation of PNG image) from Qt (v.4.1.3)

Re: [PyKDE] Updated PyQt4 Documentation

2006-06-05 Thread David Boddie
On Sun, 4 Jun 2006 18:54:35 +0100, Phil Thompson wrote: I've updated the PyQt4 documentation at http://www.riverbankcomputing.com/Docs/PyQt4/html/classes.html Although there are still many rough edges, this will be what's included with the final release of PyQt4. Any feedback of the you

Re: [PyKDE] Updated PyQt4 Documentation

2006-06-06 Thread David Boddie
On Mon, 5 Jun 2006 22:43:18 +0100, Phil Thompson wrote: On Monday 05 June 2006 8:03 pm, David Boddie wrote: The following classes are probably internal classes and aren't mentioned in the Qt documentation. They may be exported from QtGui, but are probably actually marked as internal

RE: [PyKDE] QSpinBox wheelEvents

2006-06-24 Thread David Boddie
On Thu, 22 Jun 2006 19:54:44 -0700, Kenneth B Harris wrote: [...] Your ideas did lead to a solution, though: a global event filter (as in your example) that watches for QWheelEvent where obj.parent() is a QSpinBox. For some reason, it sends events from a plain QObject instance. I can post

Re: [PyKDE] PyQt 4.0.1 - howto ?

2006-07-17 Thread David Boddie
On Sun Jul 16 14:13:59 MEST 2006, Adrien Bourdet wrote: In my previous post, I paste an example of code that crash python on import of PyQt. I also have the crash with examples from the tutorial : tiggrou at TiggrouPB:~/Documents/Prog/Download/PyQt-mac-gpl-4.0.1/ examples/tutorial$

Re: [PyKDE] Model indexes and internal pointers

2006-07-19 Thread David Boddie
On Wednesday 19 July 2006 10:52, Jeremy Sanders wrote: On Wed, 19 Jul 2006, David Boddie wrote: Probably, but there's not much you can do if you attach Python objects to temporary C++ objects and pass them back to Qt. If you just prevent them from being collected, there's the chance

  1   2   3   4   5   6   7   >