tkinter-layout

how to Entry.insert() work with frames in tkinter?

别说谁变了你拦得住时间么 提交于 2019-12-11 19:12:09
问题 i am trying to make a program that help me in my work at the school and i made lots of progress with it but i am messing now i need to fined how to make the path of the file to show on the Entry widget i tried lots of the stuffs in here and i may didn't git the idea behind it please help me with it import tkinter as tk from tkinter.filedialog import askopenfilename from tkinter.messagebox import showerror from tkinter import ttk import xlrd class SchoolProjict(tk.Tk): def __init__(self, *args

Tkinter pack layout: Elastic band analogy

旧巷老猫 提交于 2019-12-11 09:13:52
问题 Using pack has been described to me as like putting all of your widgets within an elastic band, the implications of this being that pack will try and keep your widgets in a small, neat area. How close is this analogy to the truth, and what are it's inconsistencies? 回答1: That analogy is not at all accurate. pack doesn't try to keep things in a "small, neat area", and it really has no relationship at all to an elastic band. pack is conceptually very simple: it arranges widgets around the edges

Python - Tkinter text size not resizing

ぐ巨炮叔叔 提交于 2019-12-11 07:18:24
问题 I am trying to make a window that resizes using Tkinter, and it works fine. But I want the font size to scale to proportion as well. The entry boxes resize perfectly but the text just stays the same size. Can I change the entry text size as well? How do I do This? Thank you in Advance. Here is a snippet of my code so far: # defining home page master = Tk() master.iconbitmap('program_icon.ico') master.geometry("410x280") master.configure(background="#ff4f30") master.title("Emailer : Log In |

Making Tkinter Multiple Windows Have One Icon in the Task Bar

亡梦爱人 提交于 2019-12-10 18:19:33
问题 I used Tkinter , with several Toplevels, They appear separate in the Ubuntu Taskbar, instead of being together as with the case of say opening multiple firefox windows (i mean they all group under firefox icon together , the required can be selected from it). All the tkinter windows appear separately in task bar and therefore occupy a lot of space in the bar.Is there a way to group them together, so that it is easy to see how many windows are opened currently and look clearly that they are