<commit_before>##
# Name: <NAME>
# Date: 11/17/2014
# Assignment: New Window
##


from tkinter import *

class MainFrame(Frame):
    def __init__(self, parent):
        Frame.__init__(self, parent)

        self.parent = parent

        self.initUI()

    def initUI(self):
        self.parent.title("Main Screen")
        self.columnconfigure(0, weight=1)
        self.columnconfigure(1, weight=1)
        self.grid()

        self.available = Listbox(self)
        self.available.grid(row=0, column=0, rowspan=2)

        self.selected = Listbox(self)
        self.selected.grid(row=0, column=1, rowspan=2)

        for i in range(100):
            self.available.insert(END, str(i))
        
def main():
    root = Tk()
    root.geometry("450x400+400+400")
    app = MainFrame(root)
    root.mainloop()

if __name__ == '__main__':
    main()

        
        <commit_msg>(Eytan) Add two listboxes side-by-side with scrollbars in MainFrame<commit_after>##
# Name: <NAME>
# Date: 11/17/2014
# Assignment: New Window
##


from tkinter import *

class MainFrame(Frame):
    def __init__(self, parent):
        Frame.__init__(self, parent)

        self.parent = parent

        self.initUI()

    def initUI(self):
        self.parent.title("Course Selection Screen")


        idLabel = Label(self, text="Course Selection:", font=(26))
        idLabel.grid(row=0, columnspan=20, column=0, sticky=S)

        #####
        
        Box1ID = Label(self, text="Department:")
        Box1ID.grid(row=1, column=0, sticky=S)
        
        scroller1 = Scrollbar(self, orient="vertical")
        Box1 = Listbox(self, width=30, height=20, yscrollcommand=scroller1.set)
        scroller1.config(command=Box1.yview)

        Box1.grid(row=2, column=0)
        scroller1.grid(sticky=E, row = 2, rowspan = 100, column = 1, ipady = 138)

        loginButton = Button(self, text="Choose Course")
        loginButton.grid(row=3, column=0)
        
        #####

        Box2ID = Label(self, text="Course:")
        Box2ID.grid(row=1, column=2, sticky=S)
        
        scroller2 = Scrollbar(self, orient="vertical")
        Box2 = Listbox(self, width=30, height=20, yscrollcommand=scroller2.set)
        scroller2.config(command=Box2.yview)

        Box2.grid(row=2, column=2)
        scroller2.grid(sticky=E, row = 2, rowspan = 100, column = 3, ipady = 138)

        submitButton = Button(self, text="Submit Course")
        submitButton.grid(row=3, column=2)
        
        #####

        self.pack()
        
def main():
    root = Tk()
    root.geometry("450x400+400+400")
    app = MainFrame(root)
    root.mainloop()

if __name__ == '__main__':
    main()

        
        
{'fraction_non_alphanumeric': 0.13804713804713806, 'fraction_numerical': 0.04227459783015339, 'mean_word_length': 2.4326059050064184, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2789292', 'n_tokens_mistral': 960, 'n_tokens_neox': 873, 'n_words': 178}