473,511 Members | 16,068 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PyGTK, Glade, and ComboBoxEntry.append_text()

Hey all,

I'm a relative newbie to Python (switched over from Scheme fairly
recently) but I've been using PyGTK and Glade to create an interface,
which is a combo I'm very impressed with.

There is, however, one thing I've been wondering about. It doesn't
seem possible to modify ComboBoxEntry choice options on the fly--at
least with append_text(), etc--because they were not created with
gtk.combo_box_entry_new_text(). Basically, I'm wondering if there's
any way around this.

Thank you,
Greg Johnston
Jan 21 '08 #1
2 2073
Greg Johnston wrote:
Hey all,

I'm a relative newbie to Python (switched over from Scheme fairly
recently) but I've been using PyGTK and Glade to create an interface,
which is a combo I'm very impressed with.

There is, however, one thing I've been wondering about. It doesn't
seem possible to modify ComboBoxEntry choice options on the fly--at
least with append_text(), etc--because they were not created with
gtk.combo_box_entry_new_text(). Basically, I'm wondering if there's
any way around this.

Thank you,
Greg Johnston
PyGTK mailing list:
http://pygtk.org/feedback.html
Jan 22 '08 #2
On Jan 21, 5:44*pm, Greg Johnston <greg.johns...@gmail.comwrote:
Hey all,

I'm a relative newbie to Python (switched over from Scheme fairly
recently) but I've been usingPyGTKand Glade to create an interface,
which is a combo I'm very impressed with.

There is, however, one thing I've been wondering about. It doesn't
seem possible to modifyComboBoxEntrychoice options on the fly--at
least with append_text(), etc--because they were not created with
gtk.combo_box_entry_new_text(). Basically, I'm wondering if there's
any way around this.

Thank you,
Greg Johnston
P.S. If anyone reads this later wondering how to do it, all you need
to do is "prime" the ComboBoxEntry with a blank entry in Glade. You
can then use append_text(), insert_text(), etc. on the object, as well
as remove_text(0) to get rid of your blank entry.
Jan 23 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1589
by: Will Ware | last post by:
In July there was a thread about problems on Red Hat 9 with PyGTK not playing nice with Glade. I was tinkering with this a little bit tonight, starting with the code I found in this article:...
4
2580
by: j_mckitrick | last post by:
Hi all. Here is a tiny container for one of each combo box, along with the glade file. Just 2 widgets, so hopefully not too large. How the heck do I get the selection from the ComboBox, as...
22
5733
by: dcrespo | last post by:
Hi all... I think wxPython is much better than PyGTK. First of all, PyGTK needs the GTK runtime installed, whereas wxPython is entirely Python's modules, so It facilitates the apps'...
1
1465
by: Thomas Bartkus | last post by:
I am experimenting (flailing around?) with glade and python. Both under MS Windows and Linux. I understand why I want to "import gtk" It gives me access to the critical gui program loop...
6
2852
by: seb | last post by:
Hi, I am using pygtk for the first times. I am wondering what would be the best "pattern" to interface pygtk with a thread. The thread is collecting informations (over the network for...
2
6082
by: =?ISO-8859-15?Q?Ma=EBl_Benjamin_Mettler?= | last post by:
Hello list! I need to repopulate PyGTK ComboBox on a regular basis. In order to do so I have to remove all the entries and then add the new ones. I tried to remove all entries like that: def...
1
1575
by: manatlan | last post by:
I was a fan of "SimpleGladeApp/tepache way" to build a pygtk app. I've build a new efficient/dynamic way to build a pygtk app ... Here is an example :...
4
13572
by: cucap | last post by:
Hello everyone, I'm new to this forum and a sort of beginner at Python. I've created a GUI in Python using Glade and GTK and I have two questions. I'm having trouble with comboboxes. Particularly...
0
1773
by: Michael Palmer | last post by:
On Sep 16, 12:30 pm, binaryjesus <coolman.gu...@gmail.comwrote: I haven't tried it myself, but I came across a blog post the other day that describes a way of building windows installers for...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7353
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7418
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.