Menu

on using the new acceptDrops class

Help
2003-08-20
2003-08-20
  • James Sparenberg

    Question here.  Does it go under the widget definition or under the updates section.  So far when I try to use it is crashing.. so I'm not understanding how it works.  Got a code example? 

    Thanks.

     
    • Adam Geitgey

      Adam Geitgey - 2003-08-20

      Just call acceptDrops() in initWidget once.  That just tells it to accept drops.

      Its probably crashing because you didn't define the itemDropped callback function.  Thats the function that is called whenever something is dropped.  See template.py in the examples directory in the SuperKaramba source code.

       
      • James Sparenberg

        K makes sense I didn't grab the source but rather just the binary rpm and was reading the website.  Neither of these points are mentioned there.  Thanks for the help I'm off to the races!

         

Log in to post a comment.