Re: Creating a rectangular icon

2010-03-03 Thread Aaron J. Seigo
On March 3, 2010, Antony Loebs wrote: > On Wed, Mar 3, 2010 at 5:58 PM, Aaron J. Seigo wrote: > > On March 3, 2010, Antony Loebs wrote: > > > Hmm...I added the following > > > > > > def paintEvent(self, event): > > > size = self.geometry() > > > height = size.height() > > > self.resiz

Re: Creating a rectangular icon

2010-03-03 Thread Antony Loebs
On Wed, Mar 3, 2010 at 5:58 PM, Aaron J. Seigo 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 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 Aaron J. Seigo
On March 3, 2010, Antony Loebs wrote: > On Tue, Mar 2, 2010 at 9:09 PM, Aaron J. Seigo 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.

Re: Creating a rectangular icon

2010-03-03 Thread Antony Loebs
On Tue, Mar 2, 2010 at 9:09 PM, Aaron J. Seigo 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, however.

Re: Creating a rectangular icon

2010-03-02 Thread Aaron J. Seigo
On March 2, 2010, Antony Loebs wrote: > On Fri, Feb 26, 2010 at 6:57 PM, Aaron J. Seigo 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 > >

Re: Creating a rectangular icon

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

Re: Creating a rectangular icon

2010-03-02 Thread Antony Loebs
On Fri, Feb 26, 2010 at 6:57 PM, Aaron J. Seigo 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 (so the i

Re: Creating a rectangular icon

2010-02-26 Thread Aaron J. Seigo
On February 26, 2010, Antony Loebs wrote: > On Fri, Feb 26, 2010 at 11:40 AM, Marco Martin wrote: > > On Thu, Feb 25, 2010 at 10:29 PM, Antony Loebs > > > > wrote: > > > I have been trying to figure out how to display a rectangular image in > > > > the > > > > > panel to use as a button. The

Re: Creating a rectangular icon

2010-02-26 Thread Antony Loebs
On Fri, Feb 26, 2010 at 11:40 AM, Marco Martin wrote: > On Thu, Feb 25, 2010 at 10:29 PM, Antony Loebs > wrote: > > 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 sa

Re: Creating a rectangular icon

2010-02-26 Thread Marco Martin
On Thu, Feb 25, 2010 at 10:29 PM, Antony Loebs wrote: >  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

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 bu