![]() ![]() If it has been switched on accidentally, you can also get rid of blue box and blue lines on your Apple iPhone screen by going to the menu settings > general > accessibility > interaction > switch control, and switching off the option. How to fix iPhone/iPad random blue rectangles on screen and slownessīlue lines on my Apple iPhone screen are also coming from this switch control setting, the lines on Apple iPhone are actually a way to point scan the screen. The blue box moving around is actually a way to scan item, used for accessibility reasons. To get rid of the blue box moving on Apple iPhone screen, simply disable the switch control setting, by going in the menu settings > general > accessibility > interaction > switch control, and switch off the button there. How to use AssistiveTouch on iPhone and iPadĪbout the Accessibility Shortcut for iPhone, iPad, and iPod touch The screen moving by itself is due to the new parallax effect, that can be switched of in reduce motion accessibility setting. The transparent box is from the zoom settings, can't be removed by double tapping with 3 fingers, or switching off the zoom accessibility option. That shouldn't be an issue on Windows.The blue box moving around your screen that your can't remove should be gone after having changed the switch control setting. However, on macOS it is not possible to draw a window over the app bar. QTimer.singleShot(timeout * 1000, QCoreApplication.quit) Window = TransparentWindow(x, y, width, height, pen_color, pen_size) `timeout` Optional: time in seconds the rectangle `pen_size` Optional: border size of the rectangle defaults to 2 ![]() `pen_color` Optional: color of the rectangle as a hex value """Highlights an area as a rectangle on the main screen. tPen(QPen(QColor(self.pen_color), self.pen_size)) """Initialize the user interface of the window.""" from PyQt5.QtGui import (QPainter,įrom PyQt5.QtWidgets import (QMainWindow, This works, tested on macOS with Python 3.x. Reference Source: - I modified it a bit to adjust the transparency. This will give you a transparent main window and draws a couple of lines: import sysįrom PyQt5.QtWidgets import QMainWindow, QApplication Something like this with PyQt5 may work for you. The window can be partially transparent, but it needs to exist. I believe drawing anything to the screen requires a window. ![]() Is there a simple, solid solution to make draws (line, rectangles, text) on the screen and take it off again after a defined period of time? Any help is appreciated! Thanks in advance, Ulrich! As long as it is not click-trough the user cannot act in/under the highlighted area! One thing here I could not make working: Any chance to make this TKinter "window" click-trough? Then this would be sufficient (close to quite good). Win.after(Duration * 1000, lambda: win.destroy()) GeometryString = str(Rect)+'x'+str(Rect)+'+' \ Here's the WORKING code of that (with one downside that is explained below the code): from tkinter import *ĭef HighlightSection(Rect=(100,100,300,200), Color = 'red', Duration = 3): I tried a work-around in repeating the drawing command with a for-loop, but also the flickering rectangle is barely visible (and this is nothing that I like to show to my clients).Ī bit better (close to sufficient) is using a transparent TKinter window (without header) and display it for a - shorter - period of time. The code draws on the screen, but the result barely becomes visible as the screen is redrawn (by Windows) very quick. Here's the code: import wxĭc.SetPen(wx.Pen((255, 0, 0), width=3, style=wx.PENSTYLE_SOLID)) I want to create visual hints for users on their screens, but I got struck finding a simple solution how to do basic drawings straight on the screen without limiting the user actions (under Windows with Python 3.x).Īfter a search the only - not properly working - solution I found was using wxPython. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |