Re: [PyQt] double free issue with OUT-argument

2010-02-19 Thread Diez B. Roggisch
Which version of SIP? I think this is fixed in SIP v4.10. It in fact is, and upgrading from a 4.9 release candidate or some such helped. Thanks. Unrelated... There is a memory leak in your %ConvertToTypeCode as PySequence_GetItem() returns a new reference to the item. However you should us

[PyQt] double free issue with OUT-argument

2010-02-13 Thread Diez B. Roggisch
Hi, wrapping happily away a 3D-engine, I encounter the following problem: >>> import irrlicht >>> core = irrlicht.irr.core >>> q = core.quaternion() >>> q.toEuler() python(3701) malloc: *** error for object 0x474b70: double free *** set a breakpoint in malloc_error_break to debug (0.0, -0.0, 0.0

[PyQt] casting issues

2009-09-16 Thread Diez B. Roggisch
Hi, when wrapping a C++-library with SIP ( 4.9-snapshot-20090821) I run into a couple of issues. First of all, the library I wrap has a hierarchy of classes (all descending from ISceneNode) which I wrapped. Now through an instance of a so-called ISceneManager, I can access instances of the

Re: [PyQt] how to wrap anonymous enums

2009-08-31 Thread Diez B. Roggisch
Phil Thompson schrieb: On Sat, 29 Aug 2009 19:43:24 +0200, "Diez B. Roggisch" wrote: Phil Thompson schrieb: On Sat, 29 Aug 2009 17:48:11 +0200, "Diez B. Roggisch" wrote: Hi, I've got a struct like this: struct SJoystickInfo { u8

[PyQt] banging my head on returning short* as void*

2009-08-29 Thread Diez B. Roggisch
Hi, I'm trying to wrap a method with the following signature: virtual const u16* getIndices() const where u16 is typedef'd as simple unsigned short. Actually, what I'm really just need is a void* here - the indices are passed to some other function which takes them as such.

Re: [PyQt] how to wrap anonymous enums

2009-08-29 Thread Diez B. Roggisch
Phil Thompson schrieb: On Sat, 29 Aug 2009 17:48:11 +0200, "Diez B. Roggisch" wrote: Hi, I've got a struct like this: struct SJoystickInfo { u8 Joystick; u32 Buttons; u32

[PyQt] how to wrap anonymous enums

2009-08-29 Thread Diez B. Roggisch
Hi, I've got a struct like this: struct SJoystickInfo { u8 Joystick; u32 Buttons; u32 Axes; enum { //! A hat is definitely present. POV_HAT

Re: [PyQt] sip 4.8.2 error: sip: Unsupported type argument to type2string()

2009-08-28 Thread Diez B. Roggisch
Hi, as always, your support is plain awesome! See below for a follow-up-question: the subject pretty much says it all. I upgraded to the latest SIP because I experienced a strange endless-loop-kind of behavior in the 4.7.* I had before, and now my building bails out with the sip: Unsuppo

[PyQt] sip 4.8.2 error: sip: Unsupported type argument to type2string()

2009-08-21 Thread Diez B. Roggisch
Hi, the subject pretty much says it all. I upgraded to the latest SIP because I experienced a strange endless-loop-kind of behavior in the 4.7.* I had before, and now my building bails out with the sip: Unsupported type argument to type2string() error message. You can find the mercurial re

Re: [PyQt] sipConvertToInstance failing after sipCanConvertToInstance succeeds.

2009-07-22 Thread Diez B. Roggisch
I missed your call to sipFindClass(). It's almost certainly a bug in your handwritten code somewhere - not necessarily in the code above. ok, I'm feeling stupid now. But after building sip with debug enabled, and stepping into the conversion-call, I found that the problem was that the error

Re: [PyQt] sipConvertToInstance failing after sipCanConvertToInstance succeeds.

2009-07-22 Thread Diez B. Roggisch
Phil Thompson schrieb: On Wed, 22 Jul 2009 20:13:45 +0200, "Diez B. Roggisch" wrote: Phil Thompson schrieb: On Tue, 21 Jul 2009 11:07:19 +0200, "Diez B. Roggisch" wrote: On Tuesday 21 July 2009 10:43:14 Phil Thompson wrote: On Tue, 21 Jul 2009 09:26:39 +0200, "

Re: [PyQt] sipConvertToInstance failing after sipCanConvertToInstance succeeds.

2009-07-22 Thread Diez B. Roggisch
Phil Thompson schrieb: On Tue, 21 Jul 2009 11:07:19 +0200, "Diez B. Roggisch" wrote: On Tuesday 21 July 2009 10:43:14 Phil Thompson wrote: On Tue, 21 Jul 2009 09:26:39 +0200, "Diez B. Roggisch" wrote: Hi, well, the subject pretty much says it. The below code exe

Re: [PyQt] sipConvertToInstance failing after sipCanConvertToInstance succeeds.

2009-07-21 Thread Diez B. Roggisch
On Tuesday 21 July 2009 10:43:14 Phil Thompson wrote: > On Tue, 21 Jul 2009 09:26:39 +0200, "Diez B. Roggisch" > > wrote: > > Hi, > > > > well, the subject pretty much says it. The below code exectutes fine in > > the debugger until it reaches the line

[PyQt] sipConvertToInstance failing after sipCanConvertToInstance succeeds.

2009-07-21 Thread Diez B. Roggisch
Hi, well, the subject pretty much says it. The below code exectutes fine in the debugger until it reaches the line irr::video::S3DVertex *vertex = (irr::video::S3DVertex *)sipConvertToInstance(py_vertex, S3DVertexType, NULL, SIP_NOT_NONE, NULL, &err); where "err" then gets some seeming

Re: [PyQt] wchar_t type mapping

2009-06-21 Thread Diez B. Roggisch
Diez B. Roggisch schrieb: Hi, I want to wrap a method with the following signature: virtual irr::gui::IGUIStaticText* addStaticText(const wchar_t* text, const irr::core::rect& rectangle, bool border=false, bool wordWrap=true, irr::gui::IGUIElement* parent=0,

[PyQt] wchar_t type mapping

2009-06-20 Thread Diez B. Roggisch
Hi, I want to wrap a method with the following signature: virtual irr::gui::IGUIStaticText* addStaticText(const wchar_t* text, const irr::core::rect& rectangle, bool border=false, bool wordWrap=true, irr::gui::IGUIElement* parent=0, irr::s32 id=-1,

Re: [PyQt] Problems with stylesheets.

2007-12-05 Thread Diez B. Roggisch
On Tuesday 04 December 2007 13:04:12 Gustavo A. Díaz wrote: > I will say for a last time... for a stylesheet is not needed... one could > create a simple widget to test the stylesheet, and instead of images to use > just colors. Is in vain to post a code for this and, i already posted > the sty

Re: [PyQt] optimization

2007-12-03 Thread Diez B. Roggisch
Linos schrieb: hello, i would like to know if exist any link about specific optimization tips for python using pyqt i am trying to optimize the code the most possible to try to maintain in pyqt and not have to reprogram in c++, for example do have psyco good results? What optimization

Re: [PyQt] property support?

2007-08-17 Thread Diez B. Roggisch
Phil Thompson schrieb: On Friday 17 August 2007, Diez B. Roggisch wrote: Hi, is there any existing or planned property-support? I've got a class that essentially looks like this: class Foo { public: SomeType Name[Size]; }; So the Name-property is part of the public API. I'

[PyQt] property support?

2007-08-17 Thread Diez B. Roggisch
Hi, is there any existing or planned property-support? I've got a class that essentially looks like this: class Foo { public: SomeType Name[Size]; }; So the Name-property is part of the public API. I'd like to access that using foo_instance.Name instead of introducing a getter/setter-

Re: [PyQt] problem with abstract classes

2007-08-15 Thread Diez B. Roggisch
Phil Thompson schrieb: On Wednesday 15 August 2007 8:57 pm, Diez B. Roggisch wrote: Hi, Do as Jim said and make sure the declaration of IEventReceiver::OnEvent() is the same in the .h and .sip files (see attached). Also remove the /Abstract/ annotation (for your example at least). Including

Re: [PyQt] problem with abstract classes

2007-08-15 Thread Diez B. Roggisch
Hi, Do as Jim said and make sure the declaration of IEventReceiver::OnEvent() is the same in the .h and .sip files (see attached). Also remove the /Abstract/ annotation (for your example at least). Including it means that "there are *other* abstract functions which I'm not going to tell you

Re: [PyQt] problem with abstract classes

2007-08-14 Thread Diez B. Roggisch
Giovanni Bajo schrieb: On 12/08/2007 16.20, Diez B. Roggisch wrote: Any suggestions? Am I doing something fundamentally wrong wrt implementation of C++-interfaces? Please post a minimal, complete example that reproduces your problem. Otherwise, it's a little hard to help you... I

[PyQt] problem with abstract classes

2007-08-12 Thread Diez B. Roggisch
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 is a pure abstract class in Irrlicht, IEventReceiver. It

[PyQt] Re: [PyKDE] Re: Use of enum in a namespace with SIP

2007-08-02 Thread Diez B. Roggisch
Hi, I found this 2 year old post: Phil Thompson schrieb: > On Tuesday 03 May 2005 10:34 pm, Claus, Richard wrote: >> Hello, >> >> The following sip code does not produce compilable code with sip 4.2 >> (4.2rc2-289, Windows XP SP2). >> >> %Module MyTest >> >> namespace MyNamespace { >> >> enum

Re: [PyKDE] Problem with Eric3

2006-03-20 Thread Diez B. Roggisch
On Monday 20 March 2006 09:43, TAC-TAC computer s.r.o. wrote: > Don't worry, it will never work! > I have exactly the same problem. > Still waiting for help (rather working with wxwidgets & boa now) :-) It works perfectly under Linux - but I had the same problem under Windows. Which is most proba

Re: [PyKDE] Debugging a segfault in Linux

2006-03-17 Thread Diez B. Roggisch
> Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1209734944 (LWP 16726)] > 0xb7682318 in QObject::parent (this=0x) at qobject.h:154 This looks fishy - a "this" with value -1 ist most probably an uninitialized pointer. Try investigating that. Diez __

Re: [PyKDE] Debugging a segfault in Linux

2006-03-17 Thread Diez B. Roggisch
On Friday 17 March 2006 15:27, Mike Tammerman wrote: > Hi, > > I'm trying to implement a distributed media player using twisted and > pyqt. Sometimes, I am getting segfaults for the gui part. I am using > custom widgets and I don't know if the reason of the problem is myself > or pyqt or something

Re: [PyKDE] also about pyqt

2006-03-14 Thread Diez B. Roggisch
> dist/hello > dist/pcre.so > dist/pwdmodule.so > dist/strop.so" > > please explain how to build an rpm-package from that files I've got debian, I don't need no RPM. The purpose of cx is to create a distribution-independent format, by bundling executables and libs and the like. It is _not_ ther

Re: [PyKDE] Using PIL in PyQT

2005-11-26 Thread Diez B. Roggisch
Rajeev Joseph Sebastian wrote: Hello all, Is it possible to load images using PIL and draw them on screen using PyQt ? Does anyone have any code snippet that could make this possible ? Certainly. Qt supports some powerful formats, e.g. PNG. So open a image with PIL, and serialize it to memor

Re: [PyKDE] python from qt import *

2005-11-23 Thread Diez B. Roggisch
On Wednesday 23 November 2005 18:39, Peter Wasenda wrote: > i get this error ? > ImportError: /usr/lib/python2.4/site-packages/qt.so: undefined symbol: > sipType_QInputDialog Which OS, which pyqt version, installed from where (package manager vs. source), if the latter what did you pass to config

Re: [PyKDE] python2.4 and decorator

2005-11-14 Thread Diez B. Roggisch
Cedric Briner wrote: hi, How do I do to use eric3 with python2.4 ? I didn't see how to tell eric to use python for compilation ? Python isn't compiled - at least not in the sense that matters here. Go code in eric3, and run -start.py from the commandline. No problem there. Apart from that,

Re: [PyKDE] Sql prepare

2005-11-03 Thread Diez B. Roggisch
Matthias Frick wrote: hi i got some problems with the prepare function fo QSqlQuery i dont get some usefull back. here my code: print db query = QSqlQuery(db) print query.prepare( "Select :l, lot_id from yb_lot_history where rownum < 4" ) print query.bindValue( ":l", QVariant("lot_id"), QSql

Re: [PyKDE] PyKDE + KAddressBook API?

2005-11-03 Thread Diez B. Roggisch
Am Donnerstag, 3. November 2005 14:19 schrieb Gustavo Sverzut Barbieri: > Hello, > > There is any way to use kabc > (http://developer.kde.org/documentation/library/3.4-api/kabc/html/index.htm >l) from within Python? I once wrote a wrapping for it a few month ago. If I get back to my linux machin

Re: [PyKDE] unicode two-way conversion

2005-10-25 Thread Diez B. Roggisch
> Ah, that helps the problem in my test script. Now I'm encountering a > problem encoding the input of a QLineedit: > > File "john.py", line 154, in dataFromGuiToUser > self.user.data["achternaam"] = self.GAchternaam.text().encode('utf-8', > 'strict') > AttributeError: encode text() returns

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

2005-10-21 Thread Diez B. Roggisch
> I disagree with Giovanni. I signal signatures could be made somewhat > more pythonic without the adverse impact. For example, it could remove > the C++ constant, pointer and reference indicators ("const", "*" and > "&") that Python-only programmers don't really understand. As long as > the cha

Re: [PyKDE] PyQT Threading on Windows?

2005-09-01 Thread Diez B. Roggisch
I assume from what you say that you are using the non-commercial version of Qt/PyQt on Windows. This is SIP v3 based because the version of Qt is v2.x. If you want a version built with SIP v4 you will need the commercial versions of Qt and PyQt. He says Qt 3.x - so I guess he might be using Qt-f

[PyKDE] latest eric3 snapshot rocks!

2005-08-23 Thread Diez B. Roggisch
Hi, just got around testing the latest snapshot - great! The toolbar-search is close to what I always dreamt of. Only a few questions arose: - it's a combo-box - but for me, it doesn't do anything. - is it possible to bind the incremental search to some key? - same for "search next/prev incr

Re: [PyKDE] pyQT tutorial _downloadable_

2005-08-07 Thread Diez B. Roggisch
Rakotomandimby (R12y) Mihamina wrote: Hi, I found this as pyQT tutorial: http://www.opendocspublishing.com/pyqt/ Well... I found no way to download it, I need to have it in an electronic form (PDF, HTML,...). My notebook is not always connected to the Net, and, having a paper book would be

Re: [PyKDE] [eric3] file/class browser

2005-07-17 Thread Diez B. Roggisch
How should the editor know, which class a variable belongs to. Python is a dynamically typed language. This means, that the type of an object is determined at runtime. This is a very big difference to C++ or Java, where a scanner can parse the source and determine the type of an object even befo

Re: [PyKDE] [eric3] file/class browser

2005-07-12 Thread Diez B. Roggisch
That could be added. What would it be good for? It's sometimes nice in larger projects when you browse a file that e.g. contains a class which has a method foo, which in turn calls a bar method in that very class. Then you can simply use the object browser to jump there instead of skimming

Re: [PyKDE] where is logconf.py?

2005-07-12 Thread Diez B. Roggisch
Paul Elliott wrote: Hello, I am trying to learn python and eric, so I will probably be asking some dumb questions for a while I am trying to figure out logging. In http://www.red-dove.com/python_logging.html it refers to something called the GUI configurator, logconf.py. But I can not fi

Re: [PyKDE] Wiki logo

2005-07-03 Thread Diez B. Roggisch
Torsten Marek wrote: Hi all, I convinced my girlfriend that making a logo for the PyQt wiki is good use for her creativity; and here is the result. Anybody doesn't like it? Otherwise I'll set it up as the logo tomorrow. I like it. Diez ___ PyKDE m

Re: [PyKDE] eric3 - unfold class fields

2005-06-28 Thread Diez B. Roggisch
Am Sunday, 26. June 2005 16:03 schrieb alex rait: > At last I managed to install eric3 and it works ok. > > Now I have some question about the editor - Is there a way to unfold the > class fields(methods, instance variables) when I enter "." for instance? > This is the way I do it in Eclipse with j

Re: [PyKDE] PyQt and sip: WId is undefined

2005-06-21 Thread Diez B. Roggisch
> I don't know PyQt myself (as I am helping with packaging), but we hope to > have a consistent environment from Darwin, Mac OS X, Solaris, and NetBSD > (which all have X). But maybe the PyQt-mac for Mac OS X will behave the > same. What are your worries? I use PyQt on mac - and it doesn't require

Re: [PyKDE] Custom signal/slot function

2005-06-19 Thread Diez B. Roggisch
Kevin Walzer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm working on my first PyQt application, and to get a feel for signals and slots, I'm trying to have my application echo the text entered into a line edit widget to stdout. However, when I test this, what is printed is "N

Re: [PyKDE] Re: [Eric] How to use ipython ?

2005-06-01 Thread Diez B. Roggisch
> Actually the IPython feature I'm the most missing, if not the only one, is > completion. This is a valuable improvement over the standard python > interpreter, when in the implementation/testing phase ; that's why it made > sense to me to have IPython run "inside" a python IDE... My eric has ta

Re: [PyKDE] PyQt Applet on Mac

2005-05-28 Thread Diez B. Roggisch
I have to admit that all the (mac)python is somewhat confusing to an old linux guy like me - in fact I even have a third lib dir, the usual /usr/lib/python2.3/... where my self-compiled extensions like omniorb live. Ok, so I digged somewhat more and found that /System/Library is the preinstall

[PyKDE] PyQt Applet on Mac

2005-05-28 Thread Diez B. Roggisch
Hi, I'm pretty new to that Mac Os world - and have difficulties getting my qt apps to work as applets. If in the MacPython ide a script is saved as Applet that tries to import qt, it fails doing so. However erfic3 works. Digging around I found that the sys.path is wrong: For whatevere reason,

Re: [PyKDE] Isn't QCvanvas available?

2005-05-27 Thread Diez B. Roggisch
Am Freitag, 27. Mai 2005 15:17 schrieb Sebastian Kügler: > Hi, > > I just stumbled across the an article about creating games with Qt [1] and > thought about playing around with it in Python. However, it seems that > QCanvas [2],[3] isn't available in pyqt :-( > > Is integration of it planned or am

Re: [PyKDE] PythonQt for Windows

2005-04-29 Thread Diez B. Roggisch
> I have compiled qt,sip,qscintilla and pyqt with mingw. I have used a > standard python-2.4.1.msi downloaded from python.org You did use a standard python and did not build it yourself? Hrmph. I was under the impression that I needed to do that - but I had troubles with a to recent mingw vers

Re: [PyKDE] PythonQt for Windows

2005-04-29 Thread Diez B. Roggisch
> I used mingw but had no problems with it so far. What binary extensions > are we talking about here? win32. The exe installers want a "normal" python, and I didn't make it compile using mingw. As win32 is pretty important on windows I'd love to see it working. Diez _

Re: [PyKDE] PythonQt for Windows

2005-04-28 Thread Diez B. Roggisch
Hi, > Qt, Python and Eric3 fans. I have prepared an all in one Windows > executable and would like to have some feedback/bugreports. > I have used the GPL version of all software! > The installer can be found on http://pythonqt.vanrietpaap.nl > > This URL might change in the future if bandwidth is

Re: [PyKDE] Render widgets to canvas/buffer

2005-04-22 Thread Diez B. Roggisch
Am Friday, 22. April 2005 15:00 schrieb Diez B. Roggisch: > Hi, > > this is more of a Qt-question I believe, but I'll ask here anyway - maybe > someone on this list has done it before. And google didn't help me so far. > > I'm looking for a way to draw my widgets

[PyKDE] Render widgets to canvas/buffer

2005-04-22 Thread Diez B. Roggisch
erall goal is to create a toolchain so that I can update my applications docs with the real widgets instead of hand-made snapshots that are automatically outdating. Any suggestions? Regards, Diez B. Roggisch ___ PyKDE mailing listPyKDE@ma

Re: [PyKDE] QMessageBox, avoiding virtual desktop switching

2005-04-08 Thread Diez B. Roggisch
Am Freitag, 8. April 2005 20:38 schrieb Alfred Young: > I'm having a bit of trouble here, I've got a Qt prog that runs in the > background and I consistently work in other desktops. > > However, when QMessageBox shows, the virtual desktop automatically > switches to the originating desktop. Is the

Re: [PyKDE] pyuic doesn't import kde modules

2005-04-07 Thread Diez B. Roggisch
> As $subject says, pyuic does not seem to be aware of the fact that kde > modules are needed when compiling .ui files that are using KDE widgets. To > reproduce it: > I came across this when designing a GUI (d'oh!), as soon as I added the > first KDE widget, I had to manually add the missing incl

Re: [PyKDE] Eric3 Usability Questions / Feedback

2005-03-18 Thread Diez B. Roggisch
> That only works for extensions eric3 knows about. Yaml isn't among them. Sure - so just make the unknown files default extension in the filedialog ".*" :) Regards, Diez ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunh

Re: [PyKDE] Eric3 Usability Questions / Feedback

2005-03-18 Thread Diez B. Roggisch
> The default file extension for the open dialog is determined by the > extension of the current editor. That means, if the current editor is a > Python file, *.py is selected, if it is an IDL file, *.idl is selected and > so on. Just checked: That doesn't work for "other" files. I opened a yaml-D

Re: [PyKDE] Eric3 Usability Questions / Feedback

2005-03-18 Thread Diez B. Roggisch
> That could be done. Right now, directories don't have a context menu. > Maybe, you can specify the entries, a context menu for directories should > have in the various project browser. I'll look into that, hopefully this weekend. > You are right. I just checked the Qt documentation and that is,

Re: [PyKDE] Eric3 Usability Questions / Feedback

2005-03-16 Thread Diez B. Roggisch
> It would be cool if the first context menu action would ask for the > filename (the destination is known by the context the context menu is > created in :), create a template and then one would just need to save the > file in the designer. My bad, I just used that feature and it already works th

Re: [PyKDE] Eric3 Usability Questions / Feedback

2005-03-15 Thread Diez B. Roggisch
Hi, > 1) In the Project Forms Browser show the context menu and select "New > form...". This shows you a selection dialog with the most common form types > to select from and opens Qt Designer. > > 2) Start Qt-Designer and save your form to its final destination in the > project tree. Then select

Re: [PyKDE] Eric3 Usability Questions / Feedback

2005-03-15 Thread Diez B. Roggisch
> 1. I create a new project and want to add a .ui form. What's the easiest > way to do this? > 2. What's the easiest way to create a new Python script and add it to the > current project? > 3. Is there any way to remove some of the toolbars? I can undock them, but > can't seem to get rid of them.

[PyKDE] KColorButton crashes

2005-03-08 Thread Diez B. Roggisch
, the segfault appeared. Putting a KDatePicker on the widget makes it segfault immediatly. Any suggestions what might be wrong? Regards, Diez B. Roggisch ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Binding parameters to slots

2004-12-16 Thread Diez B. Roggisch
Am Donnerstag, 16. Dezember 2004 16:01 schrieb Jeremy Sanders: > Hi - > > I'm trying to connect a signal in my class to a signal, but bind one of > its parameters to the signalling object: > > For instance, I want to do something like > > self.connect( button, qt.SIGNAL('clicked()'), >

Re: [PyKDE] QThread

2004-12-14 Thread Diez B. Roggisch
> right after finishing my work on a make-shift > process-spawning-and-killing-framework to have concurrent threads that can > be terminated to circumvene the lack of such a feature in the python > threading model, I discovered QThread. Now I wonder if my work is totally > obsolete, or if there are

[PyKDE] QThread

2004-12-14 Thread Diez B. Roggisch
Hi, right after finishing my work on a make-shift process-spawning-and-killing-framework to have concurrent threads that can be terminated to circumvene the lack of such a feature in the python threading model, I discovered QThread. Now I wonder if my work is totally obsolete, or if there are

Re: [PyKDE] Static member functions

2004-12-14 Thread Diez B. Roggisch
> If that's the case then just use QObject.sender(). The slot must be a > method of a QObject derived class - but that wouldn't seem to be a problem > in this case. Nice. Didn't know that. Diez ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.i

Re: [PyKDE] Static member functions

2004-12-13 Thread Diez B. Roggisch
Hi, I think I understand your problem as follows: You have a non-parametrized signal, lostFocus, that you want to connect to one slot - but then somehow "magically" there shall be a reference to the object the signal came from is passed. May be what could help is somthing like this: class Mag

Re: [PyKDE] PyQt Metaclass programming

2004-12-06 Thread Diez B. Roggisch
think that sip.wrappertype should be exposed, as that would be a more "natural" approach to the problem - and more easy to document. Regards, Diez B. Roggisch ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] newbie question

2004-11-18 Thread Diez B. Roggisch
> What is the difference when naming a function as : > def myfunction(self) def __myfunction__(self) and def __myfunction(self) That actually a python question - comp.lang.python is a better forum to ask such questions. And as always: google is your friend :) For an explanation of python naming

Re: [PyKDE] PyQt

2004-11-17 Thread Diez B. Roggisch
Am Mittwoch, 17. November 2004 14:41 schrieb Thomas Bellos: > Nice tip > Thanks for that. > As for my other question? > Any tips? These are covered in the tutorials, examples and the book I mentioned. examples3/application.py features menus. Diez _

Re: [PyKDE] PyQt

2004-11-17 Thread Diez B. Roggisch
> I understand that the principles of gui and http programming are different. > I used some html terms in my email just to give people a hint of what I > would like > to do in my application. Ok, so then this was a misunderstanding. > When I say 'equivelant to the html frame tag' I just want to k

Re: [PyKDE] PyQt

2004-11-17 Thread Diez B. Roggisch
Hi, > I am new to PyQt although I have experience in php. > I have an application built in php and I am trying to > convert it to PyQt. It uses a Mysql database to store and The paradigms you're known to from http driven programming don't apply well in the native gui world. That has nothing to

Re: [PyKDE] Segmentation faults in pyqt

2004-07-30 Thread Diez B. Roggisch
multibyte gont related. I just wanted to post this here so it gets into the archives. Regrards, Diez B. Roggisch > When I gdb tut3.py (Unfortunately I'm no gdb expert - not anymore, at > least...) I get a segfault with this stack: > > #0 0x41c84829 in _Xutf8DefaultDrawImageStri

Re: [PyKDE] Segmentation faults in pyqt

2004-06-20 Thread Diez B. Roggisch
> > libsip is SIP v3, not v4. Yes, I currently used the debian packages, which are sip 3.10.1 and pyqt 3.11 In the meantime, I created a debug-builds of python 2.3.4, sip 4 rc4 and pyqt 3.12 Still the same problem - so it appears to me that the problem is not something stale lying around. W

Re: [PyKDE] Segmentation faults in pyqt

2004-06-20 Thread Diez B. Roggisch
Hi, > This smells fishy. I would start checking your system for old versions > of sip/PyQt, especially in /usr/lib/python. If this guess doesn't > match, send us the output of: I did that - I removed all things that appeared to be part of sip and pyqt, and reinstalled the packages. Now all in /

[PyKDE] Segmentation faults in pyqt

2004-06-19 Thread Diez B. Roggisch
Hi, I've been struggling with this for a while now. I've got pyqt in various versions running on two machines - as debian testing package, or self-built. It works nice and smoothly. But on the machine I care most about - the one sitting on my desk at home - it segfaults - regardless of what I

[PyKDE] problem compiling PyKDE-3.11alpha7 kio module

2004-05-06 Thread Diez B. Roggisch
#x27;: /usr/include/kde/kautomount.h:70: error: `KAutoMount::~KAutoMount()' is private kiopart0.cpp:89808: error: within this context Any suggestions? Regards, Diez B. Roggisch ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PYQT

2004-04-27 Thread Diez B. Roggisch
Am Dienstag, 27. April 2004 19:25 schrieb mm: > on my slackware. how do i avoid getting the 'Qtsupport disabled' ? i have > tried all the options installing the qt lib together with the header files. And make sure the latter ones are found. The setup.py is somewhat inflexible in this regard - I n

Re: [PyKDE] segfault with pyqt & sip latest snapshots

2004-04-18 Thread Diez B. Roggisch
> I had this problem but with a different version of both. I found that > removing and rebuilding and reinstalling both solved this problem. > I don't know why the problem occured though. > The second time i didn't use any build options at all, just python build.py How exactly did you remove the i

[PyKDE] segfault with pyqt & sip latest snapshots

2004-04-17 Thread Diez B. Roggisch
"flashes" for a splitsecond, then the program terminates. any suggestions? btw: I tried sip 4.0 rc 3 before - same thing there. And as there was no way to uninstall it, I simply "overinstalled" it using the sip snapshot. Afterwards, I recompiled/reinstalled pyqt without any

Re: [PyKDE] DCOP Problems and Solutions

2003-11-18 Thread Diez B. Roggisch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, > I'd be interested in hearing opinions on any of this. I'll make > some decision on kab in the next few days depending on what > feedback I get. Now obviously I'm for putting kab in pyKDE :) I'm not sure what kjs exactly does - but working in p