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

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

Related

How can i make menu in KivyMD like this:

I need to make menu when only icons are visible when minimized:
And then i open menu:
I try to make this to combine MDTopAppBar and MDNavigationDrawer but it doesn't work.
You are looking for the MDNavigationRail.
See the KivyMD documentation for more details and this example in particular.

pywinauto ribbon menu returns no control identifiers

I'm trying to automate a series of tasks I have to do with a given software. I've managed to "wing it" using keyboard controls, but to extend the complexity of the script I need to access a ribbon menu.
So far, my code is as follows:
windows = pwa.Desktop(backend="win32").windows()
running_windows = [window.window_text() for window in windows]
midas_title = ""
target_title = "Civil"
for window in running_windows:
if target_title in window:
midas_title += window
else:
pass
app = pwa.Application().connect(title=midas_title)
app[midas_title].set_focus()
app.MidasGenMainFrmClass['MIDAS/Civil'].print_control_identifiers()
app.MidasGenMainFrmClass['BCGPRibbonBar:40000000:8:10003:10'].print_control_identifiers()
Judging by the top/left and bottom/right coordinates of the BCGPRibbonBar:40000000:8:10003:10, that seems to be the menu that I want to access so that I can click on the "Results" button in this ribbon (my final goal), but when I do print_control_identifiers() on that the output I get is this:
BCGPRibbonBar:40000000:8:10003:10 - 'MIDAS/Civil' (L0, T0, R1920, B174)
['MIDAS/CivilBCGPRibbonBar:40000000:8:10003:10', 'BCGPRibbonBar:40000000:8:10003:10', 'MIDAS/Civil']
child_window(title="MIDAS/Civil", class_name="BCGPRibbonBar:40000000:8:10003:10")
I'm very new to this, but seems like the ribbon has no children?
Seems like I'm too new to embed images, but link here to what the ribbon menu looks like
And finally, link to the image of the inspector of the "Results" menu where I'd like to click
Hopefully this is sufficient information, but please let me know if anything is missing.
If anyone has any idea of what I might be doing wrong, that would be extremely helpful.
Use backend="uia" instead of backend="win32". Ribbon controls are visible to UIA backend only. Application(backend="uia") is also a must.

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

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.

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.

How to add a button on the title bar in Kivy

I am making an application. In my design I am planning to add a tabbed panel that is integrated into the title bar just like iCal application. Is there anyway to make this happen with kivy? Thanks in advance
enter image description here

Categories

Resources