Example #1
0
    def clickAdd(self):
        self.addCard()
        self.editCard(len(self.set) - 1)

    def exit(self):
        self.updateFile()
        self.deleteECS()
        self.addButton.delete()
        return len(self.set)


window = tk.Tk()
window.geometry("900x600")
#--------------------
frame = SFrame(window)  #650
frame.pack(fill="both")
frame.scrollable_frame.config(width=685, height=1300)
canvas = tk.Canvas(frame.scrollable_frame, width=10000, height=100000)
canvas.place(x=0, y=0)
# scrollbar = tk.Scrollbar(window)
# scrollbar.pack(side = tk.RIGHT, fill = "y")
window.minsize(700, 200)
#frame.config(yscrollcommand = scrollbar.set)
# frame.scrollable_frame.config(bg = "white")
#-----------------
# scrollbar = tk.Scrollbar(window)
# scrollbar.place(relx=1, rely=0, relheight=1, anchor='ne')
#
# canvas = tk.Canvas(window, scrollregion = window.bbox('all'), width = 630)
# canvas.place()
#-------------------