GUI example

I am writing a GUI in Python using Tkinter. I work from a DB on MySQL, when sampling I get some information that needs to be displayed on the screen. A cursor in the PyMySQL library provides data in a 'class' tuple'.

How to display 'class' tuple' or 'class numpy.ndarray' correctly (working with this and that) so that it is beautiful and without [], not like in the screenshot?

ray = np.array(myCur.fetchall()) 
  • For your specific example: ray = ', '.join(myCur.fetchall()[0]) or ray = '\n'.join(myCur.fetchall()[0]) - Sergey Nudnov

0