Re: [PyKDE] multiply-defined

2004-06-12 Thread Frederick Polgardy Jr
The problem is a linker error resulting from the fact that you are defining the same methods in more than one place -- generally this happens when something is defined in a header file that should be in a source (.cpp) file. But it's impossible to say much more than that without seeing your

Re: [PyKDE] Error installing pykde on Debian

2003-12-25 Thread Frederick Polgardy Jr
On Thursday 25 December 2003 07:50, Ricardo Javier Cardenes Medina wrote: On Thu, Dec 25, 2003 at 12:23:54AM +, Tom Badran wrote: Fred told me privately (but again, his server bounces my mails) that this doesn't work. Please, substitute python-kde with python-kde3 Also, with recent

Re: [PyKDE] Error installing pykde on Debian

2003-12-24 Thread Frederick Polgardy Jr
On Wednesday 24 December 2003 18:23, Tom Badran wrote: On Wednesday 24 Dec 2003 13:06, Ricardo Javier Cardenes Medina wrote: On Thu, Dec 18, 2003 at 09:54:53AM +, Ricardo Javier Cardenes Medina wrote: On Wed, Dec 17, 2003 at 05:13:33PM +, Ricardo Javier Cardenes Medina

Re: [PyKDE] Huge amount of time

2003-08-20 Thread Frederick Polgardy Jr
Xrange provides iterator semantics without actually creating a sequence, so it will always be faster, but the speed isn't noticeable to a human in this case. On Wednesday 20 August 2003 02:24 pm, Christian Bird wrote: One other thing to try would be using xrange instead of range. I'm not

Re: [PyKDE] Huge amount of time

2003-08-20 Thread Frederick Polgardy Jr
Faster to create, that is. They may be a tiny hair slower to use, because xrange computes each index when you ask for it. On Wednesday 20 August 2003 02:52 pm, Frederick Polgardy Jr wrote: Xrange provides iterator semantics without actually creating a sequence, so it will always be faster

Re: [PyKDE] Re: Panel applets with PyKDE/Python

2003-08-19 Thread Frederick Polgardy Jr
On Tuesday 19 August 2003 03:45 am, Hans-Peter Jansen wrote: On Tuesday 19 August 2003 03:06, Jim Bublitz wrote: It's bug 62859 - go to bugs.kde.com, vote early and vote often (I http://bugs.kde.org/show_bug.cgi?id=62859 It almost seems to be that this should be generalized to support other

[PyKDE] Re: Learning C++

2003-08-14 Thread Frederick Polgardy Jr
On Wednesday 13 August 2003 11:03 am, Jonathan Gardner wrote: I think your point is that learning C then C++ would make a horrible Object Oriented Programmer. I go one step further -- C++ is a horrible language for anything OO. Maybe I'm in the minority on this one (perhaps because I haven't

[PyKDE] Re: Learning C++

2003-08-14 Thread Frederick Polgardy Jr
On Wednesday 13 August 2003 01:53 pm, Simon Edwards wrote: I learnt C and asm originally and now I write KDE stuff in C++, basically C with classes. Most of C++ is a waste of space IMHO. Templates are a disaster, streams are just overrate syntactic sugar as they say, and I'm still waiting to

Re: Learning C++ (was Re: [PyKDE] Line numbers in TextEdit box?)

2003-08-14 Thread Frederick Polgardy Jr
I definitely have to second this. (Would that be: this-second()? I guess for a std::pair it would be just this-second. Ugh, feel free to just shoot me at any time. :)) The worst C++ code I've ever seen is written by people who come from a C mindset, and are just using C++ to take advantage

Re: [PyKDE] Sending an argument to a function with a button click

2003-08-06 Thread Frederick Polgardy Jr
You can accomplish this a bit more simply with a lambda: self.connect(self.button1, SIGNAL(clicked()), lambda: self.buttonClickedSlot(button1)) self.connect(self.button2, SIGNAL(clicked()), lambda: self.buttonClickedSlot(button2)) Though now that I think about it,

Re: [PyKDE] pyKDE on debian

2003-07-31 Thread Frederick Polgardy Jr
On Thursday 31 July 2003 11:00 am, Tom Badran wrote: Ok, i assume this is an upstream rather than debian specific problem and so will eventually be resolved? Will pyKDE be going into debian proper or just available from people.debian.org? Tom This was just hashed around about three weeks

Re: [PyKDE] ImportError

2003-07-24 Thread Frederick Polgardy Jr
On Thursday 24 July 2003 08:57 am, Pablo Yabo wrote: I'm trying to extend qt code in c++ using scripts written in python accessing the objects as a java script language. Huh? ___ PyKDE mailing list[EMAIL PROTECTED]

Re: [PyKDE] Deep copy

2003-07-22 Thread Frederick Polgardy Jr
On Tuesday 22 July 2003 10:28 am, Vio wrote: def cloneObj(obj): cloneObj = obj.__class__() It's worse than that. This presumes you can default construct your object, which in many (most?) cases you probably can't. ___ PyKDE mailing list

Re: [PyKDE] Error when loading libqtc for PyQt3.7

2003-07-11 Thread Frederick Polgardy Jr
Obviously this situation arises, and will continue to arise, every iteration of SIP/PyQt development, given that PyKDE is a pretty monstrous project, and presumably Jim has a life outside of PyKDE. :) The problem is that there is a set of users who want the cutting edge SIP/PyQt stuff, and

Re: [PyKDE] Error when loading libqtc for PyQt3.7

2003-07-11 Thread Frederick Polgardy Jr
I'll upload PyKDE after next release (3.7? 3.8? whatever ;). Then, I'll wait until the whole thing (sip,QScintilla,PyQt,PyKDE) enters Sarge before uploading any other upgrade. Then, you'll have a place where you positively know that PyKDE (and dependencies) will forever be available. That's

Re: [PyKDE] C++ conversion to python, using sip

2003-06-28 Thread Frederick Polgardy Jr
On Saturday 28 June 2003 12:53, Jonathan Gardner wrote: Python has been going in the way of merging the int and float types closer together than in C/C++ (For instance, 1/2 may equal 0.5 in the future) Yes, it's already under the What's new in Python 2.2 section of the docs, in the section

Re: [PyKDE] Using SIP to wrap python objects

2003-06-12 Thread Frederick Polgardy Jr
On Thursday 12 June 2003 18:31, Rob Knapp wrote: I've found myself in a position where I need to present a python object to a C++ object, and it needs to look like a C++ object. The target application knows nothing of python. Would it be possible to create an object using SIP that I can