import Tkinter
from Tkinter import *

from Tkinter import Label, W

import Pmw
import sys
import csv
import os
import subprocess
 
root = Tk()
root.title('CITY CRIME DATA ANALYSIS')
Pmw.initialise()


var1 = StringVar()
var1.set('---select---')
opt_menu_1 = Pmw.OptionMenu(root, labelpos=W,
        label_text='City :', menubutton_textvariable=var1,
        items=('Boston', 'Chicago'),
  menubutton_width=16)
opt_menu_1.pack(anchor=W, padx=20, pady=17)



"""var2 = StringVar()
var2.set('---select---')


opt_menu_2 = Pmw.OptionMenu(root, labelpos=W,
        label_text='Zip Code :', menubutton_textvariable=var2,
        items=('60601', '60602', '60603', '60604','60605','60606','60607', '60608', '60609', '60610','60611', '60612', '60613', '60614', '60615','60616','60617','60618','60619','60620', '60621','60622','60623','60624','60625','60626','60627','60628','60629','60630'),
  menubutton_width=16)
opt_menu_2.pack(anchor=W, padx=20, pady=15)"""

var2 = StringVar()


var2 = Pmw.ComboBox(root, labelpos = W, entry_width=16, label_text= 'Zip Code :',entryfield_value='---select---')
for item in reversed(['60601', "60602", "60603", "60604","60605","60606", "60607", "60608", "60609","60610","60611", "60612", "60613", "60614","60615","60616", "60617", "60618", "60619","60620",'60621','60622','60623','60624','60625','60626','60627','60628','60629','60630']):
	var2.insert(0,item)
#var2.configure(width = 16)
var2.pack(anchor=W,padx=20, pady=17)







var3 = StringVar()
var3.set('---select---')

opt_menu_3 = Pmw.OptionMenu(root, labelpos=W,
        label_text='Type of Crime :', menubutton_textvariable=var3,
        items=('THEFT', 'BATTERY', 'CRIMINAL DAMAGE', 'NARCOTICS','OTHER OFFENSE','ASSAULT','DECEPTIVE PRACTICE','BURGLARY','MOTOR VEHICLE THEFT','ROBBERY'),
  menubutton_width=16)