Text entry in Panda

I would like to know if there’s a simple way of invoking user text input from a menu in Panda.

I’ve written a program that generates certain types of architectural drawings based on user supplied numbers.

The simple terminal version works like this,


and the gui version like this,

dlg = wx.TextEntryDialog(self, 'Enter Depth','Text Entry')
        if dlg.ShowModal() == wx.ID_OK:
         depth1 = str(dlg.GetValue())

I would use the latter but for the fact that wx and panda don’t get along too well. I’ve seen examples here of work arounds but I would rather just drop the wx module altogether if possible, and use something native to the engine

EDIT: Oops. Just found DirectEntry in the manual. Literacy fail. :blush:

It’s safer if you use raw_input in your programs.

There’s DirectEntry.

Thanks for the heads up Yaio, that DirectEntry works like a charm.