-
Notifications
You must be signed in to change notification settings - Fork 0
/
chat_xrc.py
49 lines (36 loc) · 1.52 KB
/
chat_xrc.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This file was automatically generated by pywxrc, do not edit by hand.
# -*- coding: UTF-8 -*-
import wx
import wx.xrc as xrc
__res = None
def get_resources():
""" This function provides access to the XML resources in this module."""
global __res
if __res == None:
__init_resources()
return __res
class xrcMainFrame(wx.Frame):
def PreCreate(self, pre):
""" This function is called during the class's initialization.
Override it for custom setup before the window is created usually to
set additional window styles using SetWindowStyle() and SetExtraStyle()."""
pass
def __init__(self, parent):
# Two stage creation (see http://wiki.wxpython.org/index.cgi/TwoStageCreation)
pre = wx.PreFrame()
self.PreCreate(pre)
get_resources().LoadOnFrame(pre, parent, "MainFrame")
self.PostCreate(pre)
# create attributes for the named items in this container
self.ID_NAME = xrc.XRCCTRL(self, "ID_NAME")
self.ID_TEXT = xrc.XRCCTRL(self, "ID_TEXT")
self.ID_SEND_BUTTON = xrc.XRCCTRL(self, "ID_SEND_BUTTON")
self.ID_SCROLL_WINDOW = xrc.XRCCTRL(self, "ID_SCROLL_WINDOW")
self.ID_LIST_CTRL = xrc.XRCCTRL(self, "ID_LIST_CTRL")
self.ID_HTML = xrc.XRCCTRL(self, "ID_HTML")
self.StatusBar = xrc.XRCCTRL(self, "StatusBar")
# ------------------------ Resource data ----------------------
def __init_resources():
global __res
__res = xrc.EmptyXmlResource()
__res.Load('chat.xrc')