Aug-03-2019, 09:15 PM
I try using: main.pack(side="top", fill="both", expand=True)
in main window to hide borders and nav minimalize expand and close.
It don't work any suggestion?
in main window to hide borders and nav minimalize expand and close.
It don't work any suggestion?

import tkinter as tk import pyautogui class MainWindow(): def __init__(self, root): self.root = root self.pole = tk.Label(self.root, text="---------") self.pole.place(x=0, y=0) self.move() def move(self): # information uder mouse x, y = pyautogui.position() pixelColor = pyautogui.screenshot().getpixel((x, y)) self.pole.config(text="X:" + str(x) + " Y:" + str(y) + "\n R:" + str(pixelColor[0]).rjust(3) + " G:" + str( pixelColor[1]).rjust(3) + " B:" + str(pixelColor[2]).rjust(3)) x = x + 2 y = y + 1 loc = "150x45+" + str(x) + "+" + str(y) root.geometry(loc) root.attributes("-topmost", True, "-toolwindow", True, "-alpha", 0.7) root.after(5, self.move) root = tk.Tk() main = MainWindow(root) #main.pack(side="top", fill="both", expand=True) root.mainloop()