MrBiogene

u/MrBiogene


r/Tkinter•

Hi there, noob question here!

Please, consider the code below as an example. I have set the frame width and height (800 x 600), to a desired size. When I run it, I get a small window with the Lorem ipsum text, instead of a window with the size I have set. If I remove the message.pack line, I get the correct size window (without text).

So, my question is: How may I create an 800 x 600 window, with that text, and free space around that text?

I have already tried different fill and expand parameters in message.pack and main_frame.pack, without success.

#!/usr/bin/python

from tkinter import *
from tkinter.ttk import *

root = Tk()
root.title('My Title')
23

r/penpals•

Hi there, how are you all? I don't have any experience in pen pals, but I would like to try it and to get contact with people from other cultures. I'm a 28, portuguese, married, biologist, ... My hobbies includes watching TV series, listening music and read. I really love to be in contact with nature (although, I live in Lisbon). If you would like to get in touch, just let me known... See you ;)

10

You've reached the end of this feed.