Python Forum
I can't hide borders and _ [] X in window.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I can't hide borders and _ [] X in window.
#1
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? Think
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()
Reply


Messages In This Thread
I can't hide borders and _ [] X in window. - by storzo - Aug-03-2019, 09:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Hide CMD call window tester_V 8 325 Apr-16-2024, 08:26 PM
Last Post: deanhystad
  Is there a way to call and focus any popup window outside of the main window app? Valjean 6 1,807 Oct-02-2023, 04:11 PM
Last Post: deanhystad
  Pyspark Window: perform sum over a window with specific conditions Shena76 0 1,187 Jun-13-2022, 08:59 AM
Last Post: Shena76
  Hide symbol or characters in regular expression Gateux 0 2,276 Mar-21-2020, 10:25 AM
Last Post: Gateux
  How to hide code Jupyter Notebook Larz60+ 0 5,154 May-07-2018, 02:45 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020