Menu

createText API

resi295
2006-02-26
2022-04-03
  • resi295

    resi295 - 2006-02-26

    Hi,
    I'm new to SuperKaramba and I'm trying to program a simple theme to display a small window of text using Python.  I would like to know if anyone can help me out with this code and tell me what I'm doing wrong.  Here's the code:

    def initWidget(widget):
        width = 20
        height = 59
        wh = width + height
        karamba.createText(widget, 30, 18, 200, 10, wh)

    I just want the program to do the simple math calculation and return the text back to me in the superkaramba window.  so far it returns nothing.  thanks

     
    • AdrienV

      AdrienV - 2006-12-21

      try karamba.createText(widget, 30, 18, 200, 10, str(wh))
      You must convert your integer to a string before passing it to createText...

       
    • Saemundr

      Saemundr - 2007-03-01

      also, to help with debugging things like that, remember to run superkaramba from the command line.

      This will then display any error messages in that terminal, and you will be able to see what it is complaining about =)

       
  • mabelgoodrich

    mabelgoodrich - 2022-04-03
    Post awaiting moderation.
  • mabelgoodrich

    mabelgoodrich - 2022-04-03

    Thanks for sharing! Thanks for one's marvelous posting! I seriously enjoyed reading it, you may be a great author.I will remember to bookmark your blog and definitely will come back sometime soon. I want to encourage yourself to continue your great work, have a nice afternoon! flirtymania.plus

     

    Last edit: mabelgoodrich 2022-04-03

Log in to post a comment.