Add multiple Elements into every entry in Drop-Down Menu Tkinter - python

I am trying to make a drop-down menu which supports an image on the left side, then two labels on top of each other, these also need to be different sized, and then on the initial button to open the menu, a down arrow on the right side.
For reference purposes, I am trying to clone the Outlook drop-down option in the Info Frame

Tkinter menus don't support that. You will have to create your own dropdown window and then managing all of the bindings for making it appear and disappear.

Related

Python app with its menu added to the right click of the OS mouse

I would like to know if it is possible, using python, to create a desktop application which is added to the mouse right click menu and add sub items to it. And also, how to link a sub menu item with a function in my code.
For instance, if a user is reading a PDF; he would :
select a text
right click on the mouse and find the app entry on the mouse's right click menu
click it,
gets a list of sub menus of the entry
selects one and that should perform a function of the app.
Take a look at this article:
https://msdn.microsoft.com/en-us/library/windows/desktop/cc144171(v=vs.85).aspx
Hope it helps.

python textbox highlight with selectable menu items

I am using Python 2.7.13 and I am trying to build a GUI that uses textbox and I need to put a menu inside the textbox that I can select different items of that menu with a highlighted cursor.I want to be able to select these items by having up and down arrow buttons and a enter button.I have searched and searched and found nothing that could help me with this problem.

Kivy dropdown: can you make it drop "up" instead of "down"?

I have a UI in Kivy with a load of buttons at the bottom of the screen. Ideally I want some of these buttons to be dropdowns but of course since they are at the bottom of the screen, you can't see the dropdown when they are tapped.
Is there any way to display dropdown items up rather than down?
Thanks for any help.
You can have a look at the kivy-md library if you start the application by running the main.py you will be able to see a demonstration of the up opening dropdown button. The widget is called MDRaisedButton.
Here is a preview

While in runtime, is it possible add an sub-menu item to the tkinter dropdown menu?

While in runtime (I mean, while the user operates the application), I would like to know if is it possible, usind Tkinter, add an sub-menu item to an existing menu, and link the new sub-menu to some code.

Equivalent of an HTML multiple SELECT box in wxPython

I'd like to create a ListBox in wxPython with the same semantics as a multiple select box in HTML. Specifically I'd like the following semantics
When the user clicks on an entry in the list, all other entries become de-selected and the clicked entry becomes selected. If the entry was already selected then it stays selected.
When the user holds down the Ctrl key while clicking on an entry, all other entries stay unchanged, but it toggles whether the clicked entry is selected.
When the user holds down shift and clicks on an entry, that entry and every entry between it and the last clicked entry become selected.
In Java I get this by using the JList class in Swing and setting the selection mode to MULTIPLE_INTERVAL_SELECTED. I assume that there's a way to do this with the wxPython toolkit, but I can't figure out how to get a ListBox or ListCtrl or any other class to do this short of doing an enormous amount of event-driven programming myself.
I think what you're looking for is the wxLB_EXTENDED list box style. Specify style = wx.LB_EXTENDED when you create the ListBox.
You can then use the GetSelections method to obtain a list of the selected items.

Categories

Resources