Why is there no 'settings'icon in con definitions - python

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"

Related

Equivalent of browser debugger's Box Model Inspector in kivy

What is the equivalent to the browser's "Box Model" Layout Inspector in the browser debugger, but for kivy?
I come from a background of web development, where "UI" debugging is done in a browser. Probably because of widespread rendering issues (w3c standards ambiguity or implementation errors in web browsers), the tools for debugging "why did my HTML render like that!?!" are quite sophisticated in web browsers.
I can simply press F12 in Firefox (also now Chromium) to open a debugging window, click on the top-left-most button (the element picker), then as I drag my mouse across the page, every distinct element (as well as a tree of breadcrumbs to the given child element) is highlighted.
If I click on a given UI element, then the html element cooresponding to the UI element is highlighted, all CSS elements are also shown, as well as a "Box Model" in the Layout tab that shows me clearly the width, height, margin, padding, and border of the element. This "Box Model" is so extremely helpful to figure out, tweak, and fix UI rendering issues when designing web pages.
Enter UI development with kivy, it takes me days instead of minutes to figure out what's going on because I don't know of a similar tool.
I want a way to be able to wrap a given kivy app with some debugger such that, as I hover over widgets in my kivy app, the full tree (breadcrums) of that tree is shown in real-time as I move my mouse across the screen. And if I click somewhere in the app, it dumps for me all of the properties of that widget, such as width, height, spacing, padding, etc (actually just enumerating the entire __dict__ of the given widget object). And, ideally, a visual representation of that widget and its sizing is displayed, like the "Box Model" screenshot above.
What's the best equivalent in kivy development for the web browser's debugger and "Box Model"?

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.

pywinauto print control identifiers does not show required controll buttons

I'm trying to automate installation (install anyware type) using pywinauto.
When I use function to dispaly controlls "print control identifiers()", I see only buttons like "minimize", "close" , "maximize" and window name. There is no "next button" and other required buttons, that I need for automating this installation.
this is how it looks after using this function:
enter image description here
this is how installer window looks :
enter image description here
code sample:
w_handle2 = pywinauto.findwindows.find_windows(title=u'PTC Solution Installer', class_name='SunAwtFrame')[0]
window2 = app.window(handle=w_handle2)
window2.print_control_identifiers()
Could you pleas help me, with my issue? Is ther any other way to check the controlls? I was also trying to use other software like inspector.exe, it tells me the windows name , but nothing about controlls.
If there is no other way, then maybe there is possibility to use function for clinking mouse, with some additional precision. For example finding specific string on installer window and clicking on it, or getting button string location and passing it, to mouse click coordinates.
Topic Update image with
inspect tool screenshot:
screenshot with inspect tool
winspy screenshots:
winspy screenshot1
winspy screenshot2
winspy screenshot3

How to make height of Gtk.StatusBar smaller in PyGObject (GTK+3)?

Standart StatusBar image
<-- So, here it how it looks in my application now. How can I make the height of it smaller? For e.g. in Google Chrome when you pointing some link it shows in the grey bar at the bottom of the page, I want same size.
Chrome is not using a GtkStatusBar (or any other GTK widgets, for that matter).
If you want to change the appearance of a GTK widgets, you'll have to either tweak the theme or use a custom widget, with your own sizing policy.

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