Code Monkey home page Code Monkey logo

Comments (3)

tb2097 avatar tb2097 commented on June 2, 2024

Glad to hear you are finding it useful. It looks like your fix should work correctly (minor logic gaffe on my part) but I'll just run it through testing before I push it out. For the other issues:

  1. dconf-tools
  • I'll add it to the spec file as a dependency; I didn't think it would be missing from a desktop environment so it's better safe than sorry.
  1. missing icons
    My guess is you likely didn't run it from the wacom-gui directory. The way the RPM works is it installs to /usr/local/wacom-gui and if the cwd is detected as /usr/local/bin, changes the cwd to the expected install location (pad.py lines 24/25) . There may be a more intelligent way of doing this so I'm open to suggestions. If you can test/verify it'd be appreciated.

  2. missing strip keys
    xsetwacom definitely supports setting values for them. It looks like wacom are not being consistent in how they configure the .tablet files, and there is some parsing that needs to be done for the svg file to properly detect where the strips are located on the tablet. With the older tablets they may have internally updated them to use the "new" method, which is to just assign them a button ID and when the touchstrip is being pressed it repeats the input. You should be able to easily test by trying the following:
    xsetwacom --list devices - get device id for PAD
    xsetwacom --set <dev id> button <button #> key +<letter>
    so, for example, if you want to set Button A to print the letter a, you would do:
    xsetwacom --set <dev id> button 1 key +a

With touch wheel tablets, button 4 - 7 are reserved for scroll/pan. If those are the IDs used for scroll/pan I can just submit a patch to libwacom to get them up date their files. If they use a different button ID we'd need to do further testing.

As well, if you'd officially like to help with development just let me know. I'd definitely be interested in getting a proper deb package setup for future releases to ease installation.

from wacom-gui.

batzkass avatar batzkass commented on June 2, 2024

Thanks for all these informations.
Let's say I can help to test and debug, just like I will do below, but for the future I will do my fork to send merge requests. For the deb package, I simply used alien to convert from rpm to deb.

I dug a little and found the issue with images not showing. self.cwd was the right folder, but you should convert to unicode utf8 as qt appears to need it if there are special chars in the path... which is my case. Note that python3 now uses utf8 encoding by default for strings. Below is a list of all changes to make it work :

./hotkeys.py:23: self.cwd = unicode(os.path.dirname(os.path.abspath(file)),"utf-8")
./hotkeys.py:244: self.cwd = unicode(os.path.dirname(os.path.abspath(file)),"utf-8")
./pad.py:23: self.cwd = unicode(os.path.dirname(os.path.abspath(file)),"utf-8")
./pad.py:274: self.cwd = unicode(os.path.dirname(os.path.abspath(file)),"utf-8")
./pad.py:426: self.cwd = unicode(os.path.join(os.path.dirname(os.path.abspath(file)), "icons/ui"),"utf-8")
./stylus.py:19: self.cwd = unicode(os.path.dirname(os.path.abspath(file)),"utf-8")
./wacom-gui.py:25: self.cwd = unicode(os.path.dirname(os.path.abspath(file)),"utf-8")

And now everything is showing well... hum, except:
the right side (with parameters) of the mapping tab is still weird, as in the gif I sent you initially. Maybe you could have a look at this ?

Regards,
François

from wacom-gui.

tb2097 avatar tb2097 commented on June 2, 2024

Thanks for finding those! I'll update to make sure the paths are parsed correctly for unicode, although I'll stick with Python 2.7 for now as that is what we use mainly in the VFX industry. However, I do plan to move over to Python 3 once that transition happens.

With regards to the mode box, my guess is xubuntu is registering the mode box size differently than on MATE (my main test platform). Can you try making this change and see if it resolves the issue with your mode box? You can try increasing the value a little bit at a time to see what seems to work correctly for you.

stylus.py:
462: - self.mode_box.setFixedSize(290, 40)
642: + self.mode_box.setFixedSize(290, 50)

from wacom-gui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.