Should an icon show current state or next state?

There is neither standardization nor general human tendency on this. For example, MS Windows UX Interaction Guidelines specifies four basic kinds of toggling progressive disclosure control. Three out of four show the state-when-activated, while one shows the current state. I believe if you test a particular approach on your users, you’ll get different results depending … Read more

How to display text on the screen without a window using Python

It turns out there are two entirely different problems here. To show text over windows, you’ll need to create an undecorated topmost window and chroma key the background. However, this won’t work when there’s a full-screen application running (such as a game). The only reliable way to show text over a full-screen application is to … Read more

How could Qt apply style from an external Qt Stylesheet file?

Say the user have its stylesheet named stylesheet.qss and is located in the application folder. You could load the style sheet when starting the application, using the -stylesheet argument : myapp->stylesheet = stylesheet.qss; But this require your user to know how to start an application with arguments. What you could also do is to add … Read more

Use asyncio and Tkinter (or another GUI lib) together without freezing the GUI

Trying to run both event loops at the same time is a dubious proposition. However, since root.mainloop simply calls root.update repeatedly, one can simulate mainloop by calling update repeatedly as an asyncio task. Here is a test program that does so. I presume adding asyncio tasks to the tkinter tasks would work. I checked that … Read more

Table layout panel scroll bar

The TableLayoutPanel is an example of a ScrollableControl. You can therefore set it’s AutoScroll property to True and the control will automatically create scroll bars when it’s preferred size exceeds its current size. This will provide you with the desired effect with minimal hassle. Procedure Set the MaximumSize property to a preferred maximum size or … Read more

Which font and size does apple use for the navigation bar title?

iOS12 – iOS15 Large Title – System Bold 34 (San Francisco) [UIFont boldSystemFontOfSize:34] iOS9 – iOS15 Regular centered title – System Semibold 17 (San Francisco) [UIFont systemFontOfSize:17 weight:UIFontWeightSemibold] iOS8 – System Semibold 17 (Helvetica Neue) [UIFont systemFontOfSize:17 weight:UIFontWeightSemibold] iOS7 – System Bold 17 (Helvetica Neue) [UIFont boldSystemFontOfSize:17]; Nice link about typo in iOS https://learnui.design/blog/ios-font-size-guidelines.html

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)