Setting default wallpaper with a script

2010-05-04 Thread Antony Loebs
So I've continued to play around with scripting the default Plasma desktop (with JavaScript) and have a quick question: how can I set the wallpaper? I tried the following --- var activity = new Activity(desktop); activity.currentConfigGroup = new Array(Wallpaper); activity.writeConfig(wallpaper,

Re: Setting default wallpaper with a script

2010-05-04 Thread Antony Loebs
On Tue, May 4, 2010 at 12:38 PM, Aaron J. Seigo ase...@kde.org wrote: the wallpaper doesn't get notified of the change; in fact, i only added any sort of real wallpaper support in 4.5 with the wallpaperPlugin and wallpaperMode properties for Activity objects. still ... what is probably

Write to AppletGlobals in plasma-desktop-appletsrc with Javascript

2010-04-25 Thread Antony Loebs
I've been messing around with ways to script the appearance of KDE and found Kubuntu's 01-kubuntu-default-setup.js script, which (quite nicely) shows me how to do what I want. However, I've run into a problem with the pager; I would like the default to be one row, instead of two. I dutifully

Re: Write to AppletGlobals in plasma-desktop-appletsrc with Javascript

2010-04-25 Thread Antony Loebs
On Sun, Apr 25, 2010 at 3:08 PM, Aaron J. Seigo ase...@kde.org wrote: currently there isn't any way to do this in 4.4. in 4.5 you will be able to use read/writeGlobalConfig to do so. in any case, the # of rows of the pager is being moved to the window manager where it really belongs (to

Re: Creating a rectangular icon

2010-03-03 Thread Antony Loebs
On Tue, Mar 2, 2010 at 9:09 PM, Aaron J. Seigo ase...@kde.org wrote: On March 2, 2010, Antony Loebs wrote: Ok, when I added self.layout.setPreferredWidth(120) that displays it correctly, but now it doesn't expand or contract at all horizontally. It does expand and contract vertically

Re: Creating a rectangular icon

2010-03-03 Thread Antony Loebs
On Wed, Mar 3, 2010 at 5:58 PM, Aaron J. Seigo ase...@kde.org wrote: On March 3, 2010, Antony Loebs wrote: Hmm...I added the following def paintEvent(self, event): size = self.geometry() height = size.height() self.resize(height * 4, height) But that doesn't work. Do I

Re: Creating a rectangular icon

2010-03-03 Thread Antony Loebs
On Wed, Mar 3, 2010 at 5:58 PM, Aaron J. Seigo ase...@kde.org wrote: On March 3, 2010, Antony Loebs wrote: Hmm...I added the following def paintEvent(self, event): size = self.geometry() height = size.height() self.resize(height * 4, height) But that doesn't work. Do I

Re: Creating a rectangular icon

2010-03-02 Thread Antony Loebs
On Fri, Feb 26, 2010 at 6:57 PM, Aaron J. Seigo ase...@kde.org wrote: On February 26, 2010, Antony Loebs wrote: Two problems: one, I don't see how to make a click on a label register, and two, while it looks fine on the desktop, if it is started in the panel it is squashed horizontally

Re: Creating a rectangular icon

2010-03-02 Thread Antony Loebs
On Tue, Mar 2, 2010 at 8:42 PM, Antony Loebs barefootedjournal...@gmail.com wrote: On Fri, Feb 26, 2010 at 6:57 PM, Aaron J. Seigo ase...@kde.org wrote: self.button = Plasma.Label(self.applet) self.button.setImage(self.package().path() + contents/images/image.png) that should

Creating a rectangular icon

2010-02-25 Thread Antony Loebs
I have been trying to figure out how to display a rectangular image in the panel to use as a button. The image itself is 30x120, but I can't get it to display to my satisfaction. If I use IconWidget, the image is squashed into a square. If I use PushButton, the image is likewise squashed by the