How can i make menu in KivyMD like this: - python

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.

Related

Why is there no 'settings'icon in con definitions

Such a popular icon as a gear wheel. Why isn't it in KivyMD? That is for example:
MDIconButton:
icon: 'settings'
Instead of an icon, it's just a white square. If you enter setting,tuning, gear, the result is the same. What's the matter?
Try using "cog". I don't know what it means but apparently that's the settings icon.
Looks like there are about 6300 icons to choose from, so that list is too long to post here.
Two ways I've found to get the right names are:
You can ctrl-f through this github link.
Or
Download KivyMD
Run the 'Kitchen Sink' demo
Scroll down and click on 'MD Icons'
Search for icon name by using the search bar
The second option allows you to search visually.
In the strict sense, a "cog" is a tooth on a wheel. A cogwheel is any wheel with teeth. A gear is a cogwheel used mesh with another cogwheel. And a sprocket is a cogwheel that links to another cogwheel by means of a chain.
This ELL link explains more
I am not sure why the developers chose to create a Material Theme based off of Google and then rename Google's icons.
Icon for gear icon in kivymd is "cog-outline"

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.

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

wxpython to display text ,images,audio ,video on the same ctrl

I wender if there is standard or custom control on wxpython to display text and other media to gather ,i mean something similar to web browser.
i tried webview but it is not support html5 elements of media.
The simple answer is "No". wxPython does not have such a control. I do think webview will get you the closest to what you want. For video, you will have to use wx.Media:
http://www.wxpython.org/docs/api/wx.media.MediaCtrl-class.html
If you really need to have an all-in-one control, then you'll have to create your own custom widget or look at a different UI toolkit to see if they have the widget you need.

wxPython non-focussed context menu

I have been able to create normal popup menus (such as context ones) using self.PopupMenu(menu, pos) and constructing a menu however one issue I run in to is that whenever I pop it up (say when I change the text in a text box ala search such as in Google Suggestions or iTunes) it will change the focus to the context menu. This seems to be built into the PopupMenu system, is there a way to show a menu but not give it focus.
Examples
Similar to (but not exactly) SuperTooltip in wxPython Demo
What these are (but in wxPython) https://developer.apple.com/library/mac/documentation/userexperience/conceptual/applehiguidelines/Windows/Windows.html#//apple_ref/doc/uid/20000961-SW4
Right now it looks like I just should create it out of a dialog with no title etc.
iTunes
Google Search
It sounds like you want an autocomplete window. There's an article on this topic on the wxPython wiki here:
http://wiki.wxpython.org/TextCtrlAutoComplete
You might also find this article helpful:
http://megamicrobase.wordpress.com/2009/01/16/adventures-in-wxpython-autocompleting/
Or perhaps this thread:
https://groups.google.com/forum/#!topic/wxpython-users/tgQcNj0b1kY

Categories

Resources