Follow-up Comment #5, bug #17005 (project mypaint):

I just noticed that the eraser is having similar problems, though the error
is different:

device change: eraser1 <enum GDK_SOURCE_ERASER of type GdkInputSource>
Traceback (most recent call last):
  File "$HOME/files/tmp/mypaint-git/mypaint/gui/tileddrawwidget.py", line
138, in motion_notify_cb
    self.device_used(event.device)
  File "$HOME/files/tmp/mypaint-git/mypaint/gui/tileddrawwidget.py", line
125, in device_used
    func(self.last_event_device, device)
  File "$HOME/files/tmp/mypaint-git/mypaint/gui/document.py", line 623, in
device_changed_cb
    if is_eraser(new_device):
NameError: global name 'is_eraser' is not defined



*My xorg.conf:*

#############################
# Miscellaneous Configuration
#############################

Section "ServerFlags"
    Option         "Xinerama" "0"                               
    Option         "DefaultServerLayout" "Default Layout"       # LCD, LCD
(twinview)
EndSection

Section "Files"
        FontPath        "/usr/local/share/fonts"
        FontPath        "/usr/share/fonts/X11/misc"
        FontPath        "/usr/X11R6/lib/X11/fonts/misc"
        FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath        "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath        "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/Type1"
        FontPath        "/usr/X11R6/lib/X11/fonts/Type1"
        FontPath        "/usr/share/fonts/X11/100dpi"
        FontPath        "/usr/X11R6/lib/X11/fonts/100dpi"
        FontPath        "/usr/share/fonts/X11/75dpi"
        FontPath        "/usr/X11R6/lib/X11/fonts/75dpi"
        # path to defoma fonts
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection


############################
# Wacom Tablet Configuration
############################
Section "InputDevice"
    Identifier     "pen1"
    Driver         "wacom"
    Option         "Type" "stylus"
    Option         "Device" "/dev/input/wacom"
    Option         "USB" "on"
    Option "TwinView" "horizontal"
    Option "ScreenNo" "0"
    Option "Rotate" "half"              # Lefty
EndSection

Section "InputDevice"
    Identifier     "eraser1"
    Driver         "wacom"
    Option         "Type" "eraser"
    Option         "Device" "/dev/input/wacom"
    Option         "USB" "on"
    Option "TwinView" "horizontal"
    Option "ScreenNo" "0"
    Option "Rotate" "half"              # Lefty
EndSection

Section "InputDevice"
    Identifier     "cursor1"
    Driver         "wacom"
    Option         "Type" "cursor"
    Option         "Device" "/dev/input/wacom"
    Option         "USB" "on"
    Option "TwinView" "horizontal"
    Option "ScreenNo" "0"
    Option "Rotate" "half"              # Lefty
EndSection

Section "InputDevice"
    Identifier     "pad1"
    Driver         "wacom"
    Option         "Type" "pad"
    Option         "Device" "/dev/input/wacom"
    Option         "USB" "on"
    Option "TwinView" "horizontal"
    Option "ScreenNo" "0"
EndSection


############################
# Other Input Configurations
############################

Section "InputDevice"
    Identifier     "Generic Keyboard"
    Driver         "kbd"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc104"
    Option         "XkbLayout" "us"
EndSection

Section "InputDevice"
    Identifier "Configured Mouse"
    Option "Device"
"/dev/input/by-id/usb-Logitech_USB-PS_2_Optical_Mouse-event-mouse
    Driver "evdev"
    Option "CorePointer"
EndSection


#######################
# Monitor Configuration
#######################

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Acer X223w"
    HorizSync       30.0 - 85.0
    VertRefresh     50.0 - 160.0
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Acer X223w"
    HorizSync       30.0 - 85.0
    VertRefresh     50.0 - 160.0
EndSection


######################
# Device Configuration
######################

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    Option         "RegistryDwords"      "PowerMizerEnable=0x0;
PerfLevelSrc=0x3322; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3"
    Option         "Coolbits" "1"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 260+"
    BusID          "PCI:5:0:0"
    Screen 0
EndSection

Section "Device"
    Identifier     "Videocard0:1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 260+"
    BusID          "PCI:5:0:0"
    Screen 1
EndSection

Section "Device"
    Identifier     "Videocard1"
    Driver         "nvidia"
    Option         "Coolbits" "1"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8500 GT"
    BusID          "PCI:4:0:0"
EndSection


######################
# Screen Configuration
######################

# Twinview LCDs.
Section "Screen"
    Identifier     "Twinview-0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option "FlatPanelProperties" "DFP: Scaling=Native"
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "DFP-1"
    Option         "metamodes" "DFP-0: 1680x1050 +1680+0, DFP-1: 1680x1050
+0+0; DFP-0: 1600x1024 +1600+0, DFP-1: 1600x1024 +0+0; DFP-0: 1440x900
+1440+0, DFP-1: 1440x900 +0+0; DFP-0: 1400x1050 +1400+0, DFP-1: 1400x1050 
+0+0; DFP-0: 1360x765 +1360+0, DFP-1: 1360x768 +0+0; DFP-0: 1280x1024
+1280+0, DFP-1: 1280x1024 +0+0; DFP-0: 1280x960 +1280+0, DFP-1: 1280x960
+0+0; DFP-0: 1280x800 +1280+0, DFP-1: 1280x800 +0+0; DFP-0: 1280x768 +1280+0,
DFP-1: 1280x768 +0+0; DFP-0: 1152x864 +1152+0, DFP-1: 1152x864 +0+0; DFP-0:
1024x768 +1024+0, DFP-1: 1024x768 +0+0; DFP-0: 960x600 +960+0, DFP-1: 960x600
+0+0; DFP-0: 800x600 +800+0, DFP-1: 800x600 +0+0; DFP-0:640x480 +640+0, DFP-1:
640x480 +0+0; DFP-0: 640x400 +640+0, DFP-1: 640x400 +0+0; DFP-0: 512x384
+512+0, DFP-1: 512x384 +0+0; DFP-0: 400x300 +400+0, DFP-1: 400x300 +0+0;
DFP-0: 320x240 +320+0 DFP-1: 320x240 +0+0;"
#    Option         "metamodes" "DFP-0: nvidia-auto-select +1680+0, DFP-1:
nvidia-auto-select +0+0"
    Option "RandRRotation" "on"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

################
# Server Layouts
################

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Twinview-0" 0 0
    InputDevice    "Generic Keyboard" "CoreKeyboard"
    InputDevice    "Configured Mouse" "CorePointer"
    InputDevice    "pad1" "SendCoreEvents"
#    InputDevice    "pad1" "NoSendCoreEvents"
#    InputDevice    "pad1"
    InputDevice    "pen1" "SendCoreEvents"
    InputDevice    "eraser1" "SendCoreEvents"
    InputDevice    "cursor1" "SendCoreEvents"
EndSection



    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?17005>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs

Reply via email to