Results 1 to 2 of 2

Thread: Python Help( Want to edit keybord(ZOOM-IN and Out) shortcut of Gimp)

  1. #1
    Join Date
    Nov 2014
    Beans
    1

    Python Help( Want to edit keybord(ZOOM-IN and Out) shortcut of Gimp)

    I have used a keybord shortcut changeing file(Python code) for gimp2.8+ , This file made my Gimp shortcut as like Photoshop. I need to change the ZOOM-In fuction's shortcut to be (Cntrl+Space+Right Mouse Click) and ZOOM-OUT to be (Cntrl+alt+Space+Right Mouse Click). I am not a programmer, So , Request to python programmers ,can you please help me by editing this code .

    The file can be found from the link velow .
    http://epierce.freeshell.org/gimp/ps-menurc

    Thanks,
    Hasib

  2. #2
    Join Date
    Aug 2011
    Location
    47°9′S 126°43W
    Beans
    2,172
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Python Help( Want to edit keybord(ZOOM-IN and Out) shortcut of Gimp)

    You can't do it with a plugin (which is what you can use Python for in Gimp)... You would need to go rather deep in the keyboard handling in C and recompile your own Gimp version because the spacebar is used for the "pan" function which is always active. You can use "Edit>Keyboard short cuts" to set Zoom-in and Zoom-out to Ctrl-Space and Ctrl-Alt-Space, without the mouse click.

    As a seasoned Gimp user I wonder why you would want such a strange setup when Ctr-Mousewheel does the same thing with any decent mouse.

    PS: looked at the file and this isn't python code. This is just the Gimp configuration file for the keyboard shortcuts (that looks a bit like Lisp syntax).
    Last edited by ofnuts; November 22nd, 2014 at 06:10 PM.
    Warning: unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •