'Windows' object has no attribute 'display_info'
See original GitHub issueBug description Hi I’m trying to get the Windows resolution with the getPortSize() function in airtestScreen, but I get this error when running the getPortSize() function when connected to a windows build unity window
Stacktrace -> line 13, in getPortSize disp = current_device().display_info AttributeError: ‘Windows’ object has no attribute ‘display_info’
To Reproduce Steps to reproduce the behavior:
- Copy the below code
“”" from poco.utils.airtest.screen import AirtestScreen airtestScreen = AirtestScreen() screenPixels = airtestScreen.getPortSize() “”"
- Open a new airtest project
- Connect to a unity window
- Run code
Expected behavior "Get windows window resolution from getPortSize() function
python version: Python 3.7
airtest version: `1.2.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to get the screen size of any computer - Stack Overflow
display.get_surface().get_size() AttributeError: 'NoneType' object has no attribute 'get_size') I've seen it's possible here and well as other ...
Read more >'Window' object has no attribute '_progSignedTexFont' - Builder
I keep getting the error AttributeError: 'Window' object has no attribute '_progSignedTexFont' ################ Experiment ended with exit ...
Read more >pygame.display — pygame v2.1.4 documentation
This module offers control over the pygame display. Pygame has a single display Surface that is either contained in a window or runs...
Read more >AttributeError: 'function' object has no attribute - Microsoft Learn
Using protected keywords from the DataFrame API as column names results in a function object has no attribute error message.
Read more >display - CSS: Cascading Style Sheets - MDN Web Docs
Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
try this:
Hi, Is the Windows 10, Unity game build window unsynchronized problem fixed by any chance? Right now I have to include this code to provide the correct focus_rect() for poco.