Author Topic: New in 2.6 - Python bindings for GIMP widgets  (Read 7119 times)

Rolf

  • Administrator
  • Sr. Member
  • ***
  • Posts: 1887
    • View Profile
New in 2.6 - Python bindings for GIMP widgets
« on: September 21, 2008, 02:05:39 pm »
In the announcement for 2.5.4 Sven wrote

Quote
- added Python bindings for most GIMP widgets to the gimpui module

Does that mean that we can just pop up a dialogue from a script?  ??? :)

WarEagle

  • Regular
  • **
  • Posts: 41
    • View Profile
Re: New in 2.6 - Python bindings for GIMP widgets
« Reply #1 on: September 24, 2008, 07:13:38 pm »
Popping up dialogs was possible before this, too. But you only were able to use the normal Python-methods like sliders and so on. The GIMP widgets are the stuff like preview-windows, layer selection and so on. For 2.4 these widgets are only implemented in the C-headerfiles and you had to use C for using them.
In other words: you can use Python to programm REAL plugins :)

Rolf

  • Administrator
  • Sr. Member
  • ***
  • Posts: 1887
    • View Profile
Re: New in 2.6 - Python bindings for GIMP widgets
« Reply #2 on: September 24, 2008, 09:52:14 pm »
Yes, I meant those GIMP dialogues! Great news.

jeffegg2

  • Regular
  • **
  • Posts: 82
    • View Profile
    • My flickr photos
Re: New in 2.6 - Python bindings for GIMP widgets
« Reply #3 on: October 05, 2008, 10:45:00 pm »
I just noticed.... I am missing some functions in my Gimp2.6. GreyCstoration, Liquid rescale, and Zone adjust....

Rolf

  • Administrator
  • Sr. Member
  • ***
  • Posts: 1887
    • View Profile
Re: New in 2.6 - Python bindings for GIMP widgets
« Reply #4 on: October 06, 2008, 06:48:29 am »
Have you checked the plugin directory? Perhaps the installer has not copied the scripts.

monoceros84

  • Administrator
  • Sr. Member
  • ***
  • Posts: 1898
    • View Profile
Re: New in 2.6 - Python bindings for GIMP widgets
« Reply #5 on: October 06, 2008, 08:08:33 am »
I just noticed.... I am missing some functions in my Gimp2.6. GreyCstoration, Liquid rescale, and Zone adjust....

That's strange. I still have them. I de-installed everything from Gimp 2.4 and installed 2.6 afterwards. And now I have not even the plugins, brushes etc. but also the application settings are still in there.

Do what Rolf said. And maybe ensure that you have the python module installed.
Cheers,
Mathias

Visit this site about my photography, my experiences in Norway and my blog:
http://www.gedankenquirl.de (German language)

jeffegg2

  • Regular
  • **
  • Posts: 82
    • View Profile
    • My flickr photos
Re: New in 2.6 - Python bindings for GIMP widgets
« Reply #6 on: October 06, 2008, 11:06:20 am »
Ok, I had to re-install my gimp stuff from the synaptic. But now the gimp-python will not install. It says it needs gimp2.4.7. Unresolved dependencies.

jeffegg2

  • Regular
  • **
  • Posts: 82
    • View Profile
    • My flickr photos
Re: New in 2.6 - Python bindings for GIMP widgets
« Reply #7 on: October 06, 2008, 11:11:26 am »
All fixed. I had to go and install the new python deb for my amd64. Great!

monoceros84

  • Administrator
  • Sr. Member
  • ***
  • Posts: 1898
    • View Profile
Re: New in 2.6 - Python bindings for GIMP widgets
« Reply #8 on: October 06, 2008, 01:00:17 pm »
Ok, I had to re-install my gimp stuff from the synaptic. But now the gimp-python will not install. It says it needs gimp2.4.7. Unresolved dependencies.

Now that you mention it - I had the same troubles. But I just removed everything and installed it again and it worked  ;D
Cheers,
Mathias

Visit this site about my photography, my experiences in Norway and my blog:
http://www.gedankenquirl.de (German language)

RobA

  • Regular
  • **
  • Posts: 93
    • View Profile
    • Cartocopia - Fantasy Mapping by RobA
Re: New in 2.6 - Python bindings for GIMP widgets
« Reply #9 on: June 15, 2009, 02:21:09 am »
Popping up dialogs was possible before this, too. But you only were able to use the normal Python-methods like sliders and so on. The GIMP widgets are the stuff like preview-windows, layer selection and so on. For 2.4 these widgets are only implemented in the C-headerfiles and you had to use C for using them.
In other words: you can use Python to programm REAL plugins :)
Just noticed this thread...

Does anyone have a REAL example of this?  I tried to a real simple python script (just applies a gaussian blur) and add a preview widget, but no matter what I try I can't get it to work.  Just adding the widget (which exists in the python def files) causes the plugin to not show up at all in the menu.

-Rob A>