hmm this works fine for me
import wx
class P:
def __init__(self):
""" Create main App """
self._app = wx.App(redirect=False)
#""" Load image """
#png = wx.Image('show_work.png', wx.BITMAP_TYPE_ANY).ConvertToBitmap()
""" Create dialog """
self._dialog = wx.Dialog(None, -1, 'Graphical Output', size = (500,500), style=wx.DEFAULT_DIALOG_STYLE & ~wx.RESIZE_BORDER)
""" Bind image to dialog """
#wx.StaticBitmap(self._dialog, -1, png, (10,5), (png.GetWidth(), png.GetHeight()))
""" Create choice list """
choice_list = []
for number in xrange(10):
choice_list.append(str(number +1))
""" Create choice list """
self._droplist = wx.Choice(self._dialog, -1, (280, 200), choices = choice_list)
""" Show dialog """
self._dialog.ShowModal()
""" Start main App """
self._app.MainLoop()
P()