コード例 #1
0
ファイル: frame.py プロジェクト: hackleman/postgres-gui
def Upload(self, parent, controller):

    label = tk.Label(self, text="Upload a table from CSV", font=fontstyle)
    label.pack(pady=100, padx=100)

    # Text input area and Submission button
    textbox = tk.Text(self, height=1, width=25)
    label = ttk.Label(self, text="Upload a CSV file")
    label.pack()
    textbox.pack()
    zonebutton = ttk.Button(self,
                            text="Upload",
                            command=lambda: guihelper.getName(textbox))
    zonebutton.pack(pady=15)
コード例 #2
0
ファイル: frame.py プロジェクト: hackleman/postgres-gui
def Delete(self, parent):

    label = ttk.Label(self, text="Delete A Table", font=fontstyle)
    label.pack(pady=100, padx=100)

    # Text input area and Submission button
    textbox = tk.Text(self, height=1, width=25)
    label = ttk.Label(self, text="Delete Table by Name")
    label.pack()
    textbox.pack()
    zonebutton = ttk.Button(self,
                            text="Delete",
                            command=lambda: guihelper.getName(textbox))
    zonebutton.pack(pady=15)
コード例 #3
0
ファイル: frame.py プロジェクト: hackleman/postgres-gui
def Create(self, parent, controller):

    label = tk.Label(self, text="Create A Table", font=fontstyle)
    label.pack(pady=100, padx=100)
    bottom = tk.Frame(self)
    bottom.pack(side='bottom')

    # Text input area and Submission button
    textbox = tk.Text(self, height=1, width=25)
    label = ttk.Label(self, text="Create Table by Name")
    label.pack()
    textbox.pack()
    zonebutton = ttk.Button(self,
                            text="Create",
                            command=lambda: guihelper.getName(textbox))
    zonebutton.pack(pady=15)