Thank you all for this large panel of solutions.
Regards
awalter1 wrote:
Hi,
I'm looking about how to create a button with only a stock item and no
label.
The unique solution I've found is :
button = gtk.Button(stock=gtk.STOCK_SAVE)
alignment =
I have sent this question before but got no response...
I am trying to install PyGTK on Solaris 8. When I run:
$ ./configure
I get -
checking for GLIB - version = 2.2.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file
Hi,
In the frame of my previous post, I want to substitute a stock item by
another one (switch from + to - and conversely).
I suppose that button.remove(image) should be the right way before perform a
button.add(new_image), but how to get the parameter image that should be a
widget.
if a perform
How about having two buttons in a box and hide()/show() them when needed?
PS. You'll want to put buttons in a gtk.SizeGroup if you want them to
be the same size.
On 27/11/2007, awalter1 [EMAIL PROTECTED] wrote:
Hi,
In the frame of my previous post, I want to substitute a stock item by
No.
In fact I want to use only one button and be able to switch the image
depending the status of the button, as you can found in some standard
behavior of MSword :
even number of click : STOCK_ADD item, then open a supplementary panel
odd number of click : STOCK_REMOVE item, then hide the
awalter1 escribió:
At the creation of the button, I use :
image = gtk.Image()
image.set_from_stock (gtk.STOCK_ADD, gtk.ICON_SIZE_BUTTON)
button = gtk.Button()
button.add (image)
On the 'changed' callback, I need to change the stock item to STOCK_REMOVE
and the next time to STOCK_ADD.
the button.set_image (newImage) has no effect !
If you can't use the set_image method, you'll have to keep a reference to
the image you want to remove, remove it : the initial question was how to
remove the image from a gtk.Button. and a button.remove(image) generates an
error.
Regards
Hi all,
I am new to pygtk. I create sample applet by looking at Computer temperature
applet from http://computertemp.berlios.de/. But when I try to add the
applet to panel it gave following error.
The panel encountered a problem while loading OAFIID:GNOME_SampleApplet.
Here is my applet code.
El día Tue, 27 Nov 2007 05:56:52 -0800 (PST)
awalter1 [EMAIL PROTECTED] escribió:
the button.set_image (newImage) has no effect !
Matías Alejandro Torres wrote:
awalter1 escribió:
At the creation of the button, I use :
image = gtk.Image()
image.set_from_stock (gtk.STOCK_ADD,
I have tried your complete example.
A small window is displayed without image in the button.
May be our environment are too different :
unix 11.11 on HPUX
python 2.4.2
gtk+ 2.6.9
From the time being I'm using this procedure, that seems to work correctly
self.optionButton =
El día Tue, 27 Nov 2007 08:29:02 -0800 (PST)
awalter1 [EMAIL PROTECTED] escribió:
I have tried your complete example.
A small window is displayed without image in the button.
May be our environment are too different :
unix 11.11 on HPUX
python 2.4.2
gtk+ 2.6.9
Yes, too different:
linux
Based on an earlier e-mail I sent I was confused about using pathnames
in rc files to do something really simple like set the background color
of a gtkbutton using rc files. I've attached four things:
1. rc - simple rc file to set a background color on a button based
on a widget hierarchy
Hello,
i have three vte widgets arranged in a vertical box.
each vte widget is inside of an hbox to group it with its scrollbar, and
a frame to label it, like so.
f_sos_out = gtk.Frame(stream control)
term_sos_out = vte.Terminal()
hb_sos_out = gtk.HBox()
sb_sos_out
13 matches
Mail list logo