Commit 71c4a13e by BellCodeEditor

save project

parent d74e16c3
Showing with 34 additions and 0 deletions
from tkinter import *
def test_scrollbar():
root = Tk()
root.geometry("400x400")
root.title("Scrollbar Example")
scrollbar = Scrollbar(root)
scrollbar.pack(side=RIGHT, fill=Y)
text = Text(root, yscrollcommand=scrollbar.set)
text.pack(side=LEFT, fill=BOTH)
scrollbar.config(command=text.yview)
root.mainloop()
if __name__ == '__main__':
test_scrollbar()
\ No newline at end of file
import tkinter as tk
root=tk.Tk()
root.geometry('400x600+800+150')
root.resizable(width=False, height=False)
root.title('江湖侠客传')
m=tk.Menu(root)
fm=tk.Menu(m,tearoff=False)
m.add_cascade(label=' < 背包储存 > ',menu=fm)
fm=tk.Menu(m,tearoff=False)
m.add_cascade(label=' < 当前任务 > ',menu=fm)
fm=tk.Menu(m,tearoff=False)
root.config(menu=m)
root.mainloop()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment