编写选课程序。左侧列表框显示学生可以选择的课程名称,右侧列表框显示学生已经选择的课程名通过四个按钮再两个列表框中移动数据项。
from tkinter import *
from tkinter import ttk
billwindows=Tk()
billwindows.title("Bill选课系统")
def callbutton1():
for i in theLeftBox.curselection():
theRightBox.insert(0, theLeftBox.get(i))
theLeftBox.delete(i)
def callbutton2():
for i in theRightBox.curselection():
theLeftBox.insert(0, theRightBox.get(i))
theRightBox.delete(i)
def callbutton3