On Mon, Sep 1, 2008 at 9:29 PM, Simon Edwards <[EMAIL PROTECTED]> wrote:
> Hello Phil,
>
> I'm busy working on integrating Python with Plasma in KDE 4. The API for
> doing network distributed applets is a bit convoluted, there is a lot of
> delegation of methods calls to other objects. I've hit a p
On Sat, Aug 30, 2008 at 1:34 AM, Jim Bublitz <[EMAIL PROTECTED]> wrote:
> 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
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 and KTextEditor::Documen
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 can't see
a way to cast to the required type.
Even though I c
On Sun, Aug 24, 2008 at 12:03 PM, himork <[EMAIL PROTECTED]> wrote:
>
> Hi, I am newbie in Python and pyQt, I hope this question is not too silly.
>
> I am trying to write a custom widget in python/pyqt to be used inside
> QtDesigner. Everything seems to work fine (i followed the tutorials and
> ex
On Thu, Jul 31, 2008 at 3:11 PM, Paul Giannaros <[EMAIL PROTECTED]> wrote:
> You do not need two config files this way. For example:
>
> o = pickle.dumps(myDevices)
> settings.setValue('test', QVariant(o))
> print pickle.loads(str(settings.value(o).toString()))
>
disadvantage is that I need two config files, so this is
> just me last resort
> Can I convert a list() to/from a QList() and save then this? Are QLists
> available in PyQt?
>
> On Thursday 31 July 2008 15:47:10 Paul Giannaros wrote:
>> You could just use the pickle module and
It's fairly easy but just how trivial it will be will depend on your
set up. Are all the QLineEdits on one widget? If so, some code a bit
like the following could work:
for widget in theParentWidget.children():
if isinstance(widget, QLineEdit):
myDictionary[widget.objectName()] = widge
On 13/09/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello
>
> i have made a pushButton that when pressed it make some instruction and then
> close the application with the command self.close().
> But if i need to make the same instruction when i press the x on the right
> upper corner
I'm trying to receive drops on my widget from a QListWidget. As the Qt4
documentation is fairly bad regarding what data is stored in the QMimeType of
a QDropEvent, I've been looking at the source. The data is packed into a
QDataStream with the following:
int r, c;
QMap v;
stream >> r >> c >> v
On Wednesday 11 July 2007 11:23:17 Marco wrote:
> Hi,
> Our company decide to use PyQt4 in our production.
>
> I just want to know is there some GUI-special-effect examples? I know
> "qtdemo" is good starter, any is there other?
>
It depends on the kind of special effects you want to do.
> Th
On Wednesday 23 May 2007 05:53:58 Nahuel Defossé wrote:
> I saw in ActiveState page the folowing code to make a singleton:
> class Borg:
> __shared_state = {}
> def __init__(self):
> self.__dict__ = self.__shared_state
> # and whatever else you want in your class -- that's all!
On Sunday 20 May 2007 17:46:46 Lieven Buts wrote:
> Greetings all,
>
> in order to learn about PyQt I have been trying to port
> the "drag-and-drop robot" example from the Qt 4.2 distribution
> to Python. My current version can be found at
> http://ultr23.vub.ac.be/~lieven/pyqt/dragdroprobot-1.py
>
On Friday 20 April 2007 15:53:30 Nicholas Kaye-Smith wrote:
> Thanks for the reply. I've tried this, but I can't seem to get it working
> (I'm very new to PyQT).
What did you try, and what went wrong?
> Could you please provide an example if possible?
>
> Thanks.
>
> On Saturday 14 April 2007 14:
On Saturday 14 April 2007 14:21:24 Nicholas Kaye-Smith wrote:
> Hi,
>
> I'd like to be able to get web forms working in my PyKDE3 application.
> Currently I have subclassed khtmlpart to support hyperlinks, but I can't
> find anything in the PyKDE documentation which could allow me to do the
> same
On Friday 13 April 2007 16:55:02 Shriramana Sharma wrote:
> Phil Thompson wrote:
> > It's a fatal error and can't be changed.
>
> Why not? If I do a mistake at the Python level, I always get the
> interpreter back. Is it because the error occurs at the C++ level of Qt?
> Can't that error be caught
On Thursday 22 March 2007 21:47, Luper Rouch wrote:
> Hi,
>
> What is the proper way to add a global exceptions catcher to a
> QApplication, for example to bring a bug report dialog when an exception
> reaches the main event loop ?
> I guess I have to make my own event loop but my attempts failed
>
On Thursday 08 March 2007 19:26, [EMAIL PROTECTED] wrote:
> >> Ironically ctypes doesn't provide the necessary C API to do this.
> >> However if (in Python) you can get the address of the real data
> >> structure as a number (ctypes.addressof() ?) then you can create a
> >> sip.voidptr from it and
Ah, problem solved!
On Tuesday 06 March 2007 01:00, Jim Bublitz wrote:
> 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_1Documen
>
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 been found. I would have thought that would have mapped t
On Thursday 22 February 2007 19:20, Giovanni Bajo wrote:
> On 2/22/2007 7:49 PM, Paul Giannaros wrote:
> >>> Nevertheless, I implemented %ConvertToSubClassCode in class A (and
> >>> class B which inherits QWidget) using
> >>> sipMapStringToClass/sipStringTyp
On Thursday 22 February 2007 18:53, Juan Fernando Estrada wrote:
> hello
>
> how i can get current file line in the same form of __name__
> __line__ ???
>
sys._getframe().f_lineno
The nice thing about getframe is that you can also peek further back and get
more information about the point f
On Thursday 22 February 2007 17:10, Giovanni Bajo wrote:
> On 2/22/2007 5:32 PM, Paul Giannaros wrote:
> >>> I have a class A that i'm wrapping with SIP. The class inherits from a
> >>> bunch of other classes. One of the classes it inherits from also in
> >
I have a class A that i'm wrapping with SIP. The class inherits from a bunch
of other classes. One of the classes it inherits from also in turn inherits
from QWidget. When I import the created module, whenever I call a method that
is meant to return an instance of class A I get a QWidget instead
I've created (almost complete) SIP bindings for the KTextEditor interface.
There are a couple of classes that I failed to wrap because of compile errors,
but it's mostly there. Would the .sip files be of use to anyone?
___
PyKDE mailing listPyKDE@
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. I don't fully understand the sip system, but is there a way
On Monday 19 February 2007 15:34, Phil Thompson wrote:
> On Monday 19 February 2007 3:15 pm, Paul Giannaros wrote:
> > On Monday 19 February 2007 13:34, Phil Thompson wrote:
> > > On Monday 19 February 2007 12:55 pm, Paul Giannaros wrote:
> > > > Hi there,
> > &
On Monday 19 February 2007 13:34, Phil Thompson wrote:
> On Monday 19 February 2007 12:55 pm, Paul Giannaros wrote:
> > Hi there,
> > I have wrapped key bits of Kate's interface (as documented at
> > http://developer.kde.org/documentation/library/3.5-api/kdebase-apidocs
Hi there,
I have wrapped key bits of Kate's interface (as documented at
http://developer.kde.org/documentation/library/3.5-api/kdebase-apidocs/kate/html/)
with SIP. Firstly, thanks for SIP -- along with good documentation, ease of
use, and Qt/KDE support it was a piece of cake.
However, my inte
On Tuesday 13 February 2007 18:12, Tony Cappellini wrote:
> My Gui is calling another Python script which is doing a lot of file I/O.
> Because of this the GUI freezes until that app returns.
>
> I've called that app using a python thread, but I still need a way to
> refresh the GUI so it doesn't h
ueuedConnection)
> a.afunc()
> p("finished in __main__")
>
> sys.exit(app.exec_())
>
>
> The example gives this output
> 0 starting
> 0 Creating thread
> 0 finished in __main__
> 3 finished in b()
>
>
>
> Regards,
> Ole Morten Grodå
I've been trying to get the main GUI thread to pass a URL to a worker thread
and have it download that (without the GUI thread blocking). I haven't been
able to do it successfully, i've tried all manner of connects/postEvents.
Here is a simplified example:
http://rafb.net/p/etOoSH97.html
In the
;
Finally, hook up the event listener with your link so it's called onclick:
myLink.addEventListener("click", Listener(), False)
There may be the odd typo, but that gives you the idea.
>
> Thanks,
> Ken
>
> Paul Giannaros wrote:
> > On Thursday 04 January 2
On Thursday 04 January 2007 21:32, Kenneth McDonald wrote:
> >> 2) It appears that pykde can access the DOM inside an HTML window in a
> >> great deal of detail. Is it possible to write pykde scripts that create
> >> an HTML window, receive events from the window, and then update the DOM
> >> of th
Hi,
How would you go about using a KatePart but getting some more fine-grained
control? I've got an editor widget up displaying in my KParts::MainWindow
(loading via createReadOnlyPart('libkatepart' .)), but I don't see how I
use the part for functionality past the basic KPart functions (i.e
There are two createNewWindow signals in KParts::BrowserExtension to notify
browser hosts that a new window has been requested.
createNewWindow(KURL, KParts::URLArgs) is supported, but I can see on the
PyKDE docs that createNewWindow(KURL, KParts::URLArgs, KParts::WindowArgs,
*&KParts::ReadOnlyP
Hi there. I'm trying to call the method setEnableExternalBrowser in my source
code but it doesn't seem to exist. i.e:
>>> import kio
>>> kio.KRun.setEnableExternalBrowser
AttributeError: setEnableExternalBrowser
Is this a bug?
Thanks,
Paul
___
PyKDE
Hey
I've been looking for information on connecting to DCOP and providing methods
accessible over DCOP.
I take it from what i've read in the mailing list archives and from what docs
I could find on the subject such functionality is not available in pyKDE?
More specifically, is there a way to do
38 matches
Mail list logo