Skip to main content

All Questions

0 votes
1 answer
12 views

How to make choices of magicgui's `ComboBox` dependent on current value of other `ComboBox`?

I want to create a magicgui widget that contains two ComboBox widgets. The choices of the second ComboBox should depend on the current value of the first ComboBox. How can I accomplish that? I know ...
Niklas Netter's user avatar
0 votes
1 answer
124 views

Can a Gtk.Entry (part of a Gtk.SpinButton) "have-focus" if it's in a Gtk.Menu?

I'm making an application that can change certain parameters through a Gtk.Menu. I have a Gtk.MenuButton that pops down a Gtk.Menu with other submenus in it. One of those submenus has Gtk.MenuItems ...
abinitio's user avatar
1 vote
1 answer
5k views

Dropdown widget Python

Please bear with me. First post for me here. I am using Python, first programming language for me, for about two weeks. Now I am stuck.. I want to create a single graph with a dropdown widget. On ...
Patrick Heinrich's user avatar
4 votes
2 answers
16k views

Multiple dependent widgets (dropdown menu) on Jupyter notebook

I was following the example on how to handle multiple dependent widgets on jupyter notebooks from here: Dynamically changing dropdowns in IPython notebook widgets and Spyre In that example the code ...
davidvarenne's user avatar
1 vote
1 answer
1k views

Select dropdown key for ipython widget

In creating an ipython dropdown widget, from IPython.html import widgets from IPython.display import display d = {"1": "a", "2": "b"} dropdown = widgets.Dropdown(options=d) display(dropdown) I can ...
user1879926's user avatar
  • 1,323
0 votes
1 answer
115 views

Python calculation/get function with menubutton

I am having problems when trying to set up a calculation for an NFL Simulator. User selects a team from a menu and each team has three variables: power rank, win percentage and luck. When making the ...
russherm's user avatar
6 votes
1 answer
19k views

Qt/PyQt: How do I create a drop down widget, such as a QLabel, QTextBrowser, etc.?

How do I create a drop-down widget, such as a drop-down QLabel, drop-down QTextBrowser, etc.? For example, I log information in a QTextBrowser, but I don't want it taking up space on the screen. So I ...
Jeff's user avatar
  • 978