tb2097 / wacom-gui

Python/PyQt Wacom GUI for KDE
GNU General Public License v3.0
134 stars 36 forks source link

Wacom-gui needs minor update #72

Open Jopp-gh opened 7 months ago

Jopp-gh commented 7 months ago

Would be nice if you could update your driver to be compatible with

I tried to tweak your code, but this caused more errors and I didn't know how to correct them. In my opinion, you only need to tweak your code a bit so it works for Mint and higher dependencies too.

tb2097 commented 7 months ago

The current release is built with PyQt5 and Python3 as requirements. I currently do not have a system with cinnamon so I didn't add it as supported for the desktop icon.

Can you please provide me information on what base OS you are running on (Debian/Ubuntu/RHEL etc) as well as what message you get when you try to run wacom-gui from the command line?

Jopp-gh commented 7 months ago

Oh..I see! my fault to use your older packages from the release page. After downloading your master, I got a missing 'PyQt5.QtSvg'. After installing that guy, I got these errors:

~/Downloads/wacom-gui-master/wacom-gui$ python3 wacom-gui.py
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,100'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 90,90,90,90'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,100'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 90,90,90,90'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,100'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 90,90,90,90'
unknown desktop environment
/dev/input/event25 is a tablet but not supported by libwacom
/dev/input/event25 is a tablet but not supported by libwacom

seems my device isnt included in libwacom's lib. But there is a kind of configuration file in /usr/share/libwacom/xp-pen-star03.tablet, here's the content:

# XP-Pen
# Star 03
#

[Device]
Name=XP-Pen Star 03
ModelName=
DeviceMatch=usb:5543:0081:UC-Logic TABLET 1060N Pen;usb:5543:0081:UC-Logic TABLET 1060N Pad;usb:28bd:0907:UGTABLET 10 inch PenTablet
Class=Bamboo
Width=10
Height=6
IntegratedIn=
Layout=xp-pen-star03.svg
Styli=0xffffd;

[Features]
Stylus=true
Reversible=true
Touch=false
Buttons=8

[Buttons]
Left=A;B;C;D;E;F;G;H
EvdevCodes=0x100;0x101;0x102;0x103;0x104;0x105;0x106;0x107

next, a dialog popped up with "Device information for "UC-Logic TABLET 1060N" not found." and I confirmed with ok, then Wacom-gui opened - but totally empty. Clicking on the "about" button works, but adding a new configuration with the plus (+) button does nothig, it generate just more errors:

Traceback (most recent call last):
  File "/home/username/Downloads/wacom-gui-master/wacom-gui/wacom-gui.py", line 211, in newConfig
    config = AddConfig.add_config(self.configs[self.dev].keys())
KeyError: None

any directions to add my tablet Wacom-gui are welcome. I mean, with some luck only the right coords are missing. Otherwise Wacom-gui and my tablet are fine

OS:Mint cinnamon 21.3 (Ubuntu based) Wacom-gui: master