text: import wx
  import wolframalpha
  import wikipedia
  
  class MyFrame(wx.Frame):
      def __init__(self):
          wx.Frame.__init__(self, None,
              pos=wx.DefaultPosition, size=wx.Size(450, 100),
              style=wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION |
               wx.CLOSE_BOX | wx.CLIP_CHILDREN,
              title="PyDa")
          panel = wx.Panel(self)
          my_sizer = wx.BoxSizer(wx.VERTICAL)
          lbl = wx.StaticText(panel,
          label="Hello I am Pyda the Python Digital Assistant. How can I help you?")
          my_sizer.Add(lbl, 0, wx.ALL, 5)
          self.txt = wx.TextCtrl(panel, style=wx.TE_PROCESS_ENTER,size=(400,30))
          self.txt.SetFocus()
          self.txt.Bind(wx.EVT_TEXT_ENTER, self.OnEnter)
          my_sizer.Add(self.txt, 0, wx.ALL, 5)
          panel.SetSizer(my_sizer)
          self.Show()
  
      def OnEnter(self, event):
          input = self.txt.GetValue()
          input = input.lower()
          try:
              #wolframalpha
              app_id = ""
              client = wolframalpha.Client(app_id)
              res = client.query(input)
              answer = next(res.results).text
              print answer
          except:
              #wikipedia
              if(len(input.split(' ')) > 2): # In case of 'who is', 'what are' questions
                  input = input.split(' ')
                  input = " ".join(input[2:]) 
              print wikipedia.summary(input)
  
  if __name__ == "__main__":
      app = wx.App(True)
      frame = MyFrame()
      app.MainLoop()