#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    3
    Rep Power
    0

    TextCtrl.AppendText - how can i Append a variable??


    for row in c.execute("select * from otrlist"):
    textArea.AppendText(row[0])

    this does not really work
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,960
    Rep Power
    481
    Maybe you need a semi-colon following "otrlist" ?
    [code]Code tags[/code] are essential for python code and Makefiles!
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    3
    Rep Power
    0
    Hi!

    no. well maybe. but i get results from the sql statement..

    doing:
    for row in c.execute("select * from otrlist"):
    textArea.AppendText("row[0]")
    print row[0]

    prints all rows to the stdout.
    just the AppendText wont work :/
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    3
    Rep Power
    0

    omg


    never mind.
    reading the error message might help^^

    textArea.AppendText(str(row[0]))

    it was integer instead of unicode/text.
    *solved*

IMN logo majestic logo threadwatch logo seochat tools logo