[PyKDE] [sip] newbie questions

2002-05-14 Thread John J. Lee
I've got as far as getting a window to appear, with an immediate segfault if you resize it. However, a few problems with sip: 1. sip (3.0) seems not to like a few standard C++ declarations that I haven't seen mentioned as being problematic: *const and virtual destructors. In the case of the

[PyKDE] sipParseArgs

2002-05-14 Thread John J. Lee
Given the lack of documentation for sip, here is a list of format characters for sipParseArgs as of sip 3.0, as far as I understand them (poorly). The other versions of this list I've seen were out of date. Questions: 1. What is the 'func' C arg for ('y' and 'q' format characters)? 2. Why

Re: [PyKDE] I Wish To Register A Complaint

2002-05-12 Thread John J. Lee
On Thu, 9 May 2002, Phil Thompson wrote: So, why don't users want to test pre-releases and release candidates? I'd like some feedback on this problem - what would motivate you as a user to test a beta version with your application? [...] It seems to be possible (as of PyQt 3.0.0) to build

Re: [PyKDE] scrollview

2002-05-09 Thread John J. Lee
On Wed, 8 May 2002, Andrew Dalke wrote: Hey all, [...detailed questions about QScrollView...] Why not ask on the Qt list? Translating Qt code to/from C++ is far less hassle than I expected at first (on the local level of library usage, rather than the larger-scale structure of your own code),

Re: [PyKDE] context menu in QHeader

2002-04-17 Thread John J. Lee
On Wed, 17 Apr 2002, Andrew Dalke wrote: [...] In a related question, I want the column headers to provide some feedback during mouseover (eg, by having the background become a lighter shade of grey). I tried setting the options that seemed even vaguely relevant, but none worked. It seems

Re: [PyKDE] designer, pyuic and QBoxLayout

2002-04-09 Thread John J. Lee
On Mon, 8 Apr 2002, greg Landrum wrote: [...] When setting up simple dialog boxes using BoxLayouts, the code generated by pyuic adds an extra QWidget that results in the guts of the dialog not resizing with the window. This widget (named LayoutWidget) is used as the parent of all objects in

[PyKDE] Subclassing QValidator

2002-02-05 Thread John J. Lee
#!/usr/bin/env python With PyQt 2.4, I get infinite recursion on typing a character. import sys from qt import * class FloatValidator(QDoubleValidator): def fixup(self, input): QDoubleValidator.fixup(self, input) if input.length() == 0: input.insert(0, None)

Re: [PyKDE] PyQT Canvas binding

2002-01-17 Thread John J. Lee
On Thu, 17 Jan 2002, Moray Taylor wrote: Is it possible to 'bind' functions to a CanvasItem in PyQT, in the same way you can bind with Tk? If so, can anyone point out a good example on the web, I have looked at the one at stage.linuxports.com/projects/pyqt/, but didn't find it to be much

[PyKDE] Python shell widget (a la PyCrust)?

2001-12-08 Thread John J. Lee
Does this kind of thing exist for PyQt? Something derived from QMultiline edit (or a base class) I guess? http://sourceforge.net/projects/pycrust/ PyCrust is an interactive Python shell written in Python. PyCrust is actually a set of modular components that can be run standalone or

Re: [PyKDE] from qt import *

2001-11-19 Thread John J. Lee
On 18 Nov 2001, Timothy Grant wrote: There have been several discussions on the Python list about the from foo import * construct. In fact, I thought I read that it is due for elimination. [...] I think it was only due for elimination in local scope, wasn't it? Or something similar. I

[PyKDE] windows install problem

2001-09-21 Thread John J. Lee
I just installed the PyQt 2.5 binary package for Python 2.1, and it complains about being unable to find qt-mt230nc.dll. It isn't on the system anywhere, so it can't have installed it. I wonder if this is because I installed PyQt in the wrong place, uninstalled (using the standard windows

Re: [PyKDE] windows install problem

2001-09-21 Thread John J. Lee
On Fri, 21 Sep 2001, John J. Lee wrote: I just installed the PyQt 2.5 binary package for Python 2.1, and it complains about being unable to find qt-mt230nc.dll. It isn't on the [...] OK, I'm stupid, I admit it. Sorry... John ___ PyKDE mailing

[PyKDE] iterating over ListView

2001-08-01 Thread John J. Lee
http://doc.trolltech.com/qlistviewitemiterator.html describes how to get all selected items in a ListView -- since Qt iterators aren't implemented in PyQt, what is the easiest / best way to do this in PyQt? Recursively iterating over all items with the methods provided is a bit of a pain (and

Re: [PyKDE] iterating over ListView

2001-08-01 Thread John J. Lee
On 1 Aug 2001, Pete Ware wrote: Is this what you are looking for? item = listview.firstChild () while item: if item.isSelected (): count = count + 1 item = item.nextSibling () Yes, stupid question of mine (well,

Re: [PyKDE] className()

2001-07-05 Thread John J. Lee
On Thu, 5 Jul 2001, Boudewijn Rempt wrote: [...] from qt import * a=QPlatinumStyle() print a qt.QPlatinumStyle instance at 0x8308f94 print a.className() QObject print isinstance(a, QPlatinumStyle) 1 And I was much surprised. Obviously, sip knows what this is - but the className()

[PyKDE] Confused about garbage collection and segfaults.

2001-06-24 Thread John J. Lee
I'm confused about which segmentation faults are to be expected, and which would be regarded as bugs. For example, while working through the Qt tutorial, I missed off a 'return' in CannonField by mistake: class CannonField(QWidget): ... def sizePolicy(self):

Re: [PyKDE] PyQwt win32 binary?

2001-02-01 Thread John J. Lee
On Thu, 1 Feb 2001, Phil Thompson wrote: "John J. Lee" wrote: Isn't it still illegal for a somebody to distribute non-free software that requires PyQt under the free Qt license? Sorry, I don't understand this. PyQt doesn't require any particular Qt license. PyQt is not und

Re: [PyKDE] PyQwt win32 binary?

2001-01-25 Thread John J. Lee
On Thu, 25 Jan 2001, Coy Krill wrote: You'll find a binary for Python 2.0 on this page... http://www.thekompany.com/projects/pykde/download.php3?dhtml_ok=1 There's a Qt binary there, but not a Qwt one that I can see - did I miss it, or did you assume I'm a bad typist? :) Be aware that