Re: Problems about plasmoid's destroy event

2011-02-25 Thread Kun Zhang
On Sat, Feb 26, 2011 at 10:10 AM, Kun Zhang wrote: > Hi, > > I'm writing a plasmoid with Python. I have a QTimer to do refresh stuff and > it works fine, unless I remove the plasmoid from desktop and the timer's > access to applet.isUnderMouse() will cause the whole

Problems about plasmoid's destroy event

2011-02-25 Thread Kun Zhang
Hi, I'm writing a plasmoid with Python. I have a QTimer to do refresh stuff and it works fine, unless I remove the plasmoid from desktop and the timer's access to applet.isUnderMouse() will cause the whole plasma desktop to crash. I have confirmed that plasma won't crash if I don't start the time

Re: The future of virtual desktops

2011-02-25 Thread Kun Zhang
On Fri, Feb 25, 2011 at 4:15 PM, Jeffery MacEachern wrote: > On Thu, Feb 24, 2011 at 22:56, Tomaz Canabrava wrote: > > > > Kun Zhang, actually windows are managed by virtual desktops in kde 4.6 > > Er, I think you meant to say "windows are managed by Activities in 4.6&

Re: The future of virtual desktops

2011-02-24 Thread Kun Zhang
I have been trying to use activities in my daily work and found some problems. I have set up two activities: - the "work" activity is a folder view without any other widgets, which I use for coding. - the "browse" activity is a desktop containing a lot of social and news widgets, which I use for le

Re: How to determine whether a plasmoid has keyboard focus?

2011-02-18 Thread Kun Zhang
On Sat, Feb 19, 2011 at 11:56 AM, Aaron J. Seigo wrote: > On Friday, February 18, 2011, Kun Zhang wrote: > > I'm writing a plasmoid in Python with a WebView. The WebView will reload > > the page automatically by a QTimer. But I don't want it to reload itself > > wh

How to determine whether a plasmoid has keyboard focus?

2011-02-18 Thread Kun Zhang
I'm writing a plasmoid in Python with a WebView. The WebView will reload the page automatically by a QTimer. But I don't want it to reload itself when I'm viewing or typing in the plasmoid, because it will be very annoying. So I have to know whether the plasmoid has keyboard focus. I tried hasFocu

Re: How to define the action the side-buttons of a plasmoid?

2011-02-13 Thread Kun Zhang
n Mon, Feb 14, 2011 at 12:09 PM, todd rme wrote: > On Sun, Feb 13, 2011 at 10:56 PM, Kun Zhang wrote: > > I am writing a plasmoid in python and want to do something when the user > > clicked the "Refresh" button in the sliding-out side-panel (which also > > conta

How to define the action the side-buttons of a plasmoid?

2011-02-13 Thread Kun Zhang
I am writing a plasmoid in python and want to do something when the user clicked the "Refresh" button in the sliding-out side-panel (which also contains the Resize and the Configuration buttons). What's the API I should use? -- Best wishes ZHANG Kun ___