#! /usr/bin/env python
#
# GUI module generated by PAGE version 4.9
# In conjunction with Tcl version 8.6
#    Nov 26, 2017 09:26:39 AM
import sys

try:
    from Tkinter import *
except ImportError:
    from tkinter import *

try:
    import ttk
    py3 = 0
except ImportError:
    import tkinter.ttk as ttk
    py3 = 1

import result_support

def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    result_support.set_Tk_var()
    top = Anna_Univ_Results (root)
    result_support.init(root, top)
    root.mainloop()

w = None
def create_Anna_Univ_Results(root, *args, **kwargs):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel (root)
    result_support.set_Tk_var()
    top = Anna_Univ_Results (w)
    result_support.init(w, top, *args, **kwargs)
    return (w, top)

def destroy_Anna_Univ_Results():
    global w
    w.destroy()
    w = None


class Anna_Univ_Results:
    def __init__(self, top=None):
        '''This class configures and populates the toplevel window.
           top is the toplevel containing window.'''
        _bgcolor = '#d9d9d9'  # X11 color: 'gray85'
        _fgcolor = '#000000'  # X11 color: 'black'
        _compcolor = '#d9d9d9' # X11 color: 'gray85'
        _ana1color = '#d9d9d9' # X11 color: 'gray85' 
        _ana2color = '#d9d9d9' # X11 color: 'gray85' 
        font10 = "-family {Latin Modern Roman} -size 14 -weight bold "  \
            "-slant roman -underline 0 -overstrike 0"

        top.geometry("600x450+392+120")
        top.title("Anna Univ Results")
        top.configure(highlightcolor="black")



        self.Entry1 = Entry(top)
        self.Entry1.place(relx=0.33, rely=0.22, relheight=0.05, relwidth=0.34)
        self.Entry1.configure(background="white")
        self.Entry1.configure(font="TkFixedFont")
        self.Entry1.configure(selectbackground="#c4c4c4")
        self.Entry1.configure(textvariable=result_support.u)

        self.Label1 = Label(top)
        self.Label1.place(relx=0.12, rely=0.02, height=29, width=456)
        self.Label1.configure(activebackground="#f9f9f9")
        self.Label1.configure(background="#d93638")
        self.Label1.configure(font=font10)
        self.Label1.configure(text='''Anna University Results''')

        self.Label2 = Label(top)
        self.Label2.place(relx=0.13, rely=0.22, height=19, width=116)
        self.Label2.configure(activebackground="#f9f9f9")
        self.Label2.configure(text='''Register No''')

        self.Button1 = Button(top)
        self.Button1.place(relx=0.45, rely=0.29, height=27, width=67)
        self.Button1.configure(activebackground="#d9d9d9")
        self.Button1.configure(command=result_support.get_result)
        self.Button1.configure(text='''Get Result''')

        self.Label3 = Label(top)
        self.Label3.place(relx=0.38, rely=0.44, height=19, width=146)
        self.Label3.configure(text='''Developed By Abu''')
        self.Label3.configure(width=146)

        self.Label4 = Label(top)
        self.Label4.place(relx=0.25, rely=0.53, height=19, width=316)
        self.Label4.configure(text='''Contact at developerabu@gmail.com''')
        self.Label4.configure(width=316)






if __name__ == '__main__':
    vp_start_gui()


