-
Notifications
You must be signed in to change notification settings - Fork 8
/
manageLinkedProjects.py
125 lines (102 loc) · 3.56 KB
/
manageLinkedProjects.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# This file was automatically generated by pywxrc.
# -*- 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 xrcManageLinked(wx.Dialog):
#!XRCED:begin-block:xrcManageLinked.PreCreate
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
#!XRCED:end-block:xrcManageLinked.PreCreate
def __init__(self, parent):
# Two stage creation (see http://wiki.wxpython.org/index.cgi/TwoStageCreation)
pre = wx.PreDialog()
self.PreCreate(pre)
get_resources().LoadOnDialog(pre, parent, "ManageLinked")
self.PostCreate(pre)
# Define variables for the controls, bind event handlers
# ------------------------ Resource data ----------------------
def __init_resources():
global __res
__res = xrc.EmptyXmlResource()
wx.FileSystem.AddHandler(wx.MemoryFSHandler())
manageLinkedProjects_xrc = """\
<?xml version="1.0" ?><resource class="wxStaticText">
<object class="wxDialog" name="ManageLinked">
<object class="wxBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxPanel">
<size>40</size>
</object>
<flag>wxGROW</flag>
</object>
<object class="sizeritem">
<object class="wxListBox" name="theList">
<pos>0,0</pos>
<size>320, 240</size>
<style>wxSIMPLE_BORDER|wxFULL_REPAINT_ON_RESIZE</style>
</object>
<option>1</option>
<flag>wxGROW</flag>
<border>0</border>
<minsize>322, 200</minsize>
</object>
</object>
<option>1</option>
<flag>wxGROW</flag>
</object>
<object class="sizeritem">
<object class="wxPanel">
<object class="wxButton" name="Unlink">
<pos>550, 10</pos>
<size>80, 30</size>
<label>Close</label>
</object>
<object class="wxButton" name="Cancel">
<label>Close</label>
<default>1</default>
<pos>460, 10</pos>
<size>80, 30</size>
</object>
</object>
<option>0</option>
<flag>wxEXPAND</flag>
<minsize>640, 40</minsize>
</object>
</object>
<pos>0,0</pos>
<size>640, 320</size>
<title>Manage Projects</title>
<centered>1</centered>
</object>
</resource>"""
wx.MemoryFSHandler.AddFile(
"XRC/manageLinkedProjects/manageLinkedProjects_xrc", manageLinkedProjects_xrc
)
__res.Load("memory:XRC/manageLinkedProjects/manageLinkedProjects_xrc")
# ----------------------- Gettext strings ---------------------
def __gettext_strings():
# This is a dummy function that lists all the strings that are used in
# the XRC file in the _("a string") format to be recognized by GNU
# gettext utilities (specificaly the xgettext utility) and the
# mki18n.py script. For more information see:
# http://wiki.wxpython.org/index.cgi/Internationalization
def _(str):
pass
_("Close")
_("Close")
_("Manage Projects")