Clone the source:
git@github.com:LinuxCNC/linuxcnc.git linuxcnc-dev
Configure:
$ cd linuxcnc-dev
$ cd debian
$ ./configure sim
Unfortunately [xinput-calibrator
][1] does not work at all for calibrating a
touchscreen in Debian9. This is apparently because X server now uses libinput
to handle input devices instead of evdev. I spent huge amount of trying to
fiddling with xinput-calibrator
and 99-calibration.conf
files until I finely
found this [issue][2] on GitHub that gave me some hints as how to proceed. This
is mostly for my own reference, but I hope it might also help others in the same
situation.
As far as I can tell, the reason Qt5 Designer does not load custom PyQt5 widgets
is due to the 'stock' shared library libpyqt5.so
(which comes with PyQt5) not
being built for the correct combination of the Python and Qt versions. It seems
the only way to get around this is to build PyQt5 from source so we will have a
libpyqt5.so
that is correct and will be able to load the custom widgets.
#include <gtk/gtk.h> | |
// Source: | |
// http://www.linuxforums.org/forum/programming-scripting/117713-gtk-moving-widget-mouse-post906490.html#post906490 | |
// higher values make movement more performant | |
// lower values make movement smoother | |
const gint Sensitivity = 1; | |
const gint EvMask = GDK_BUTTON_PRESS_MASK | GDK_BUTTON1_MOTION_MASK; |
#!/usr/bin/env python | |
# Copyright (c) 2017 Kurt Jacobson | |
# License: https://kcj.mit-license.org/@2017 | |
import os | |
import gi | |
gi.require_version('Gtk', '3.0') | |
gi.require_version('Gdk', '3.0') |
#!/usr/bin/env python | |
# Copyright (c) 2018 Kurt Jacobson | |
# <kurtcjacobson@gmail.com> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 2 of the License, or | |
# (at your option) any later version. | |
# |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\.stp] | |
@="stp_auto_file" | |
[HKEY_CLASSES_ROOT\stp_auto_file] | |
@="" | |
[HKEY_CLASSES_ROOT\stp_auto_file\shell] |
xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync | |
xrandr --addmode Virtual1 1920x1080 | |
xrandr --output Virtual1 --mode 1920x1080 |