-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinventarioGUI.py
45 lines (31 loc) · 901 Bytes
/
inventarioGUI.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import pymongo
import codecs
#from Tkinter import *
import ttk
#from inventario import *
import tkFileDialog
from Tkinter import Tk, Menu, Frame, Entry, Label, Text
#from ttk import Frame, Label, Combobox, Entry
class Inventario(Frame):
def __init__(self, parent):
self.parent = parent
self.initUI()
def initUI(self):
self.parent.title("Inventario")
menubar = Menu(self.parent)
self.parent.config(menu=menubar)
fileMenu = Menu(menubar)
fileMenu.add_command(label="Cerrar", command=self.Close)
menubar.add_cascade(label="File", menu=fileMenu)
def Close(self):
self.parent.destroy()
def main():
root = Tk()
mainframe = Inventario(root)
root.geometry("600x300+100+100")
root.mainloop()
if __name__ == '__main__':
main()