jonathanwin / yagv

A fast 3D Gcode Viewer for Reprap-style 3D printers, in Python and OpenGL
75 stars 48 forks source link

Panning, keyboard control #13

Open hexagon5un opened 7 years ago

hexagon5un commented 7 years ago

This project looks abandoned. Bummer.

Anyway, here were the showstoppers for me -- no panning to zoom in on details, and the inability to control (anything?) over keyboard.

ednisley commented 5 years ago

I hacked the main yagv file to use Ctrl-Q as an exit shortcut by the simple expedient of copying the existing Ctrl-R code:

diff yagv /usr/share/yagv/yagv 
18a19
> import sys
364a366,367
>       if symbol==pyglet.window.key.Q and modifiers & pyglet.window.key.MOD_CTRL:
>           sys.exit()

There's likely a prettier way, but it gets the job done …