vimouse icon indicating copy to clipboard operation
vimouse copied to clipboard

crash after pressing ctrl+meta

Open Bwaiz0 opened this issue 2 years ago • 4 comments
trafficstars

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?

Bwaiz0 avatar Aug 28 '23 21:08 Bwaiz0

I pushed new code. Try it

garywill avatar Aug 29 '23 01:08 garywill

yes it's working. thankz)

Bwaiz0 avatar Aug 29 '23 20:08 Bwaiz0

dual monitor is supported?

Bwaiz0 avatar Aug 29 '23 20:08 Bwaiz0

dual monitor is supported?

Not truely suppoted yet. But you can modify this: https://github.com/garywill/vimouse/blob/8fd23e356de6e578e724e9c47605b28f464f80e0/g.py#L7-L17 as workaround, to make it work on the monitor you want , or cross-monitor

garywill avatar Aug 30 '23 01:08 garywill