usr bin env python coding utf-8 import wx from wx import xrc class App

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import wx
from wx import xrc
class AppPanel(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
self.res_erase = xrc.XmlResource('file.xrc')
self.panel = self.res_erase.LoadPanel(self, 'panel')