hide the titlebar,HOW to move the Window #27
Unanswered
maxwangwyf
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
def start_move(event):
global x_offset, y_offset
x_offset = event.x
y_offset = event.y
def stop_move(event):
global x_offset, y_offset
x_offset = None
y_offset = None
def on_drag(event):
global x_offset, y_offset
if x_offset is not None and y_offset is not None:
app.geometry(f"+{event.x_root - x_offset}+{event.y_root - y_offset}")
app.bind('', start_move)#标题栏拖动效果
app.bind('', on_drag)
app.bind('', stop_move)
this is a way to move the window,but many bugs
Beta Was this translation helpful? Give feedback.
All reactions