#!/usr/bin/env python

import wx

class MyPanel(wx.Panel):


    def __init__(self, *args, **kwargs):
        print "in __init__"
        wx.Panel.__init__(self, *args, **kwargs)

        self.output = wx.StaticText(self, -1, 'None', (410, 300))
        
        self.dont_ask_me_again = wx.CheckBox(self,-1,"Don't ask me again",(250,300),(150,20))

        #self.outputn =  wx.TextCtrl(self, -1, '', (150, 170))
        self.given = wx.TextCtrl(self, -1, '',  (400, 270), (150, -1),style=wx.TE_PROCESS_ENTER | wx.TAB_TRAVERSAL)

        self.asked = wx.TextCtrl(self, -1, '',  (250, 270), (150, -1),style= wx.TE_READONLY | wx.TAB_TRAVERSAL)

        self.submit = wx.Button(self, 7, 'Submit', (550, 270),style=wx.TAB_TRAVERSAL)

        self.add1 = wx.TextCtrl(self, -1, '',  (250, 400), (150, -1),style=wx.TAB_TRAVERSAL)

        self.add = wx.TextCtrl(self, -1, '',  (400, 400), (150, -1),style=wx.TE_PROCESS_ENTER | wx.TAB_TRAVERSAL)

        self.addVocButton = wx.Button(self, 6, 'Add Vocabulary', (550, 400),style=wx.TAB_TRAVERSAL)

        self.given.SetFocus()

        self.times_till_lock = wx.SpinCtrl(self,-1,"",(250,320),(50,-1),style=wx.TAB_TRAVERSAL)
        self.times_till_lock.SetValue(9)
        
        self.Show()





print "creating the app"
app = wx.App(False)
print "creating frame"
frame = wx.Frame(None)
print "creating Panel"
P = MyPanel(frame, size=(800,600))
print "setting toplevel"
#app.SetTopLevelWindow(frame)
print "showing frame"
frame.Fit()
frame.Show()
print "calling MainLoop"
app.MainLoop()
