Menu

AutoDocumentation

Plugins
2004-07-15
2004-07-16
  • Tom De Muer

    Tom De Muer - 2004-07-15

    You can find the "AutoDocumentation" v0.0.0 plugin at http://users.skynet.be/tom.demuer/AutoDocumentation.py.  Info about the plugin via http://users.skynet.be/tom.demuer/ .

    In short: when a user types a '(' the plugin tries to fetch the documentation for the function and shows it as a calltip.  It works very similar like the AutoComplete and is based on that code, so credits to the "drpython" :)

     
    • Tom De Muer

      Tom De Muer - 2004-07-15

      Fixed an upload error... thx Franz!

       
    • Franz Steinhaeusler

      Nice plugin,

      I have a german keyboard and for the '(',
      I need:
      DrFrame.AddKeyEvent(OnAutoDocumentation, 56, 0, 1)
      and for the ')':
      DrFrame.AddKeyEvent(OnHideAutoDocumentation, 57, 0, 1)

       
    • Daniel Pozmanter

      Nice plugin, but there are some issues:

      1.  You do not need "LoadKeyEvents", you can just do that in main.

      2.  The line endings need to be uniform.

      3.  you need to ignore the string "drpython" to, it causes the plugin to freeze.

      I really like this plugin.  It has been on my todo list for drpython forever.  Would you mind calling it Calltips?

      Only because I think more people know what that is right away, just from the name.

      When you get up to 0.0.1 (And it works, you can either send it to me, or I will set things so you can upload.  I highly recommend including an index file with your plugin.).

      Also, you may want to consider simply having the user set the key by calling drGetKeyDialog, and saving that.  You could also use the built in method of having the user add keys "DrFrame.AddPluginShortcutFunction(NameOfTheCurrentPlugin, NameOfTheFunction, FunctionYouWantToAdd)",
      and insert a '(' in function (or add an event.Skip()).

      That way you wouldn't have to mess with different keyboard configurations.

      Good work!
      (Want to join up as a developer?)

       
      • Tom De Muer

        Tom De Muer - 2004-07-16

        Thx for the good comment.  I will correct the stuff you mention. 

        The LoadKeyEvents was there to reuse the code in case someone resets the keyboard but after issues I didn't allow that anymore.  Anyhow, the drGetKeyDialog may indeed be the best option.  However I don't understand what you mean by the user adding keys via the pluginshortcut... could you elaborate?

        CallTips 0.0.1 should be there tomorrow or so.  I'll email you privately about joining as developer in the next day or so, if that is ok for you?

         
    • Daniel Pozmanter

      Works great for me.

       
    • Tom De Muer

      Tom De Muer - 2004-07-16

      Ok changed the code a bit, would anyone care to have a look?  Web page is :

      http://users.skynet.be/tom.demuer/python_calltips.htm

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.