Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash after pressing ctrl+meta #3

Open
Bwaiz0 opened this issue Aug 28, 2023 · 4 comments
Open

crash after pressing ctrl+meta #3

Bwaiz0 opened this issue Aug 28, 2023 · 4 comments
Labels
solved solved

Comments

@Bwaiz0
Copy link

Bwaiz0 commented Aug 28, 2023

app starting

starting key listener..
listening

, but after pressing ctrl+meta the following message appears in the console:

key listener stop or reset...
resetKeyPrsd()
showWindow()
create thread for QtApplication
WARNING: QApplication was not created in the main() thread.
key listener: NOW BLOCKING KEY EVENTS BEING SENT TO OTHER APPS, until key badges dismiss
QSettings::value: Empty key passed
QSettings::value: Empty key passed
QWidget subclass init finish
refresh()
Traceback (most recent call last):
File "/home/bwz/downloads/vimouse-master/tgui.py", line 158, in paintEvent
painter.setFont( QFont( 'Arial' , letterH, QFont.Bold) )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QFont(): too many arguments
QFont(family: str, pointSize: int = -1, weight: int = -1, italic: bool = False): argument 2 has unexpected type 'float'
QFont(a0: QFont, pd: QPaintDevice): argument 1 has unexpected type 'str'
QFont(a0: QFont): argument 1 has unexpected type 'str'
QFont(variant: Any): too many arguments
zsh: IOT instruction (core dumped) python3 main.py

how i can fix it?

@garywill
Copy link
Owner

I pushed new code. Try it

@Bwaiz0
Copy link
Author

Bwaiz0 commented Aug 29, 2023

yes it's working. thankz)

@Bwaiz0
Copy link
Author

Bwaiz0 commented Aug 29, 2023

dual monitor is supported?

@garywill
Copy link
Owner

dual monitor is supported?

Not truely suppoted yet.
But you can modify this:

vimouse/g.py

Lines 7 to 17 in 8fd23e3

# for debug not cover whole screen
scrX = 0
scrY = 0
scrW = 1100
scrH = 500
# enable this if you want to.
# autoGetDesktopSize = False
autoGetDesktopSize = True
# If it doesn't fetch your desktop size correctly,
# disable it and manually fill your resolution into above

as workaround, to make it work on the monitor you want , or cross-monitor

@garywill garywill added the solved solved label Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved solved
Projects
None yet
Development

No branches or pull requests

2 participants