Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 447

Is there a way to write a sequence of text lines to a grid window?

$
0
0

Forgive my ignorance; I'm trying to get going with tkinter. I have gotten code to work to send text strings to various row/column entries using .grid. But if I want to just write a series of messages to one row/column, as one would use print statements to send many lines to the console, what would I do? I did this by using a row counter and incrementing it each time, which works, but is clunky.

Thanks!

This is my code to write a line:

msg = "Some formatted string"Label(win, text = msg).grid(row = tk_row_num, column = 0, sticky = W)tk_row_num = tk_row_num + 1

Viewing all articles
Browse latest Browse all 447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>