I assume by New Debian you mean RPi OS Bookworm
You can do it in Tk provided you switch from Wayland to X11.
To do it in Tkinter is a bit of a bodge. Tk sees the two monitors as a single desktop. You have to position the window for the second monitor at
x=monitor1_width.
You can do it in GTK4. GTK4 treats each monitor as a desktop which is just what I wanted for Pi Presents. This works on Wayland and X11
I use 32 bit but I don't see why it should be different fr 64 bit.
You can do it in Tk provided you switch from Wayland to X11.
To do it in Tkinter is a bit of a bodge. Tk sees the two monitors as a single desktop. You have to position the window for the second monitor at
x=monitor1_width.
You can do it in GTK4. GTK4 treats each monitor as a desktop which is just what I wanted for Pi Presents. This works on Wayland and X11
I use 32 bit but I don't see why it should be different fr 64 bit.
Code:
def display_info(self): display = Gdk.Display.get_default() print ('Display name: ',display.get_name()) monitors=display.get_monitors() for m in monitors: connector=m.get_connector() geometry = m.get_geometry() x = geometry.x y = geometry.y width=geometry.width height=geometry.height print (' Monitor',connector,x,y,width,height) self.win.fullscreen_on_monitor(m)
Statistics: Posted by KenT2 — Fri Feb 23, 2024 10:52 pm