My favorites
|
Sign in
google-appengine-wx-launcher
Windows Launcher for Google App Engine
Project Home
Downloads
Wiki
Issues
Source
Checkout
|
Browse
|
Changes
|
r9
Source path:
svn
/
trunk
/
wxgladegen
/
main_frame.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
#!/usr/bin/env python
# -*- coding: iso-8859-15 -*-
# generated by wxGlade 0.6.3 on Mon Aug 24 21:53:36 2009
import wx
# begin wxGlade: extracode
import launcher
RUN_BUTTON = wx.NewId()
STOP_BUTTON = wx.NewId()
BROWSE_BUTTON = wx.NewId()
LOGS_BUTTON = wx.NewId()
SDK_CONSOLE_BUTTON = wx.NewId()
EDIT_BUTTON = wx.NewId()
DEPLOY_BUTTON = wx.NewId()
DASHBOARD_BUTTON = wx.NewId()
PLUS_BUTTON = wx.NewId()
MINUS_BUTTON = wx.NewId()
APP_SETTINGS_MENU = wx.NewId()
BROWSE_MENU = wx.NewId()
DASHBOARD_MENU = wx.NewId()
DEPLOY_MENU = wx.NewId()
LOGS_MENU = wx.NewId()
OPEN_EXTERNAL_EDITOR_MENU = wx.NewId()
OPEN_FILE_BROWSER_MENU = wx.NewId()
REMOVE_PROJECT_MENU = wx.NewId()
RUN_MENU = wx.NewId()
RUN_STRICT_MENU = wx.NewId()
SDK_CONSOLE_MENU = wx.NewId()
STOP_MENU = wx.NewId()
OPEN_SDK_MENU = wx.NewId()
import launcher
RUN_BUTTON = wx.NewId()
STOP_BUTTON = wx.NewId()
BROWSE_BUTTON = wx.NewId()
LOGS_BUTTON = wx.NewId()
SDK_CONSOLE_BUTTON = wx.NewId()
EDIT_BUTTON = wx.NewId()
DEPLOY_BUTTON = wx.NewId()
DASHBOARD_BUTTON = wx.NewId()
PLUS_BUTTON = wx.NewId()
MINUS_BUTTON = wx.NewId()
APP_SETTINGS_MENU = wx.NewId()
BROWSE_MENU = wx.NewId()
DASHBOARD_MENU = wx.NewId()
DEPLOY_MENU = wx.NewId()
LOGS_MENU = wx.NewId()
OPEN_EXTERNAL_EDITOR_MENU = wx.NewId()
OPEN_FILE_BROWSER_MENU = wx.NewId()
REMOVE_PROJECT_MENU = wx.NewId()
RUN_MENU = wx.NewId()
RUN_STRICT_MENU = wx.NewId()
SDK_CONSOLE_MENU = wx.NewId()
STOP_MENU = wx.NewId()
OPEN_SDK_MENU = wx.NewId()
# end wxGlade
class GenMainFrame(wx.Frame):
def __init__(self, *args, **kwds):
# begin wxGlade: GenMainFrame.__init__
kwds["style"] = wx.DEFAULT_FRAME_STYLE
wx.Frame.__init__(self, *args, **kwds)
# Menu Bar
self._menubar = wx.MenuBar()
wxglade_tmp_menu = wx.Menu()
self.newproject_menuitem = wx.MenuItem(wxglade_tmp_menu, wx.NewId(), "Create New Application...\tCtrl+N", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.newproject_menuitem)
self.addproject_menuitem = wx.MenuItem(wxglade_tmp_menu, wx.NewId(), "Add Existing Application...\tCtrl+Shift+N", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.addproject_menuitem)
self.removeproject_menuitem = wx.MenuItem(wxglade_tmp_menu, REMOVE_PROJECT_MENU, "Remove Project...\tCtrl+Del", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.removeproject_menuitem)
wxglade_tmp_menu.AppendSeparator()
self.open_sdk_menuitem = wx.MenuItem(wxglade_tmp_menu, OPEN_SDK_MENU, "Open SDK in Explorer...\tCtrl+Shift+D", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.open_sdk_menuitem)
wxglade_tmp_menu.AppendSeparator()
wxglade_tmp_menu.Append(wx.ID_EXIT, "Exit\tCtrl-Q", "", wx.ITEM_NORMAL)
self._menubar.Append(wxglade_tmp_menu, "File")
wxglade_tmp_menu = wx.Menu()
wxglade_tmp_menu.Append(wx.ID_CUT, "Cut\tCtrl+X", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.Append(wx.ID_COPY, "Copy\tCtrl+C", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.Append(wx.ID_PASTE, "Paste\tCtrl+V", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.Append(wx.ID_SELECTALL, "Select All\tCtrl+A", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendSeparator()
self.appsettings_menuitem = wx.MenuItem(wxglade_tmp_menu, APP_SETTINGS_MENU, "Application Settings...\tCtrl+I", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.appsettings_menuitem)
wxglade_tmp_menu.AppendSeparator()
self.open_edit_menuitem = wx.MenuItem(wxglade_tmp_menu, OPEN_EXTERNAL_EDITOR_MENU, "Open in External Editor\tCtrl+E", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.open_edit_menuitem)
self.open_explorer_menuitem = wx.MenuItem(wxglade_tmp_menu, OPEN_FILE_BROWSER_MENU, "Open in Explorer\tCtrl+Shift+E", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.open_explorer_menuitem)
wxglade_tmp_menu.AppendSeparator()
self.preferences_menuitem = wx.MenuItem(wxglade_tmp_menu, wx.NewId(), "Preferences...", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.preferences_menuitem)
self._menubar.Append(wxglade_tmp_menu, "Edit")
wxglade_tmp_menu = wx.Menu()
self.run_menuitem = wx.MenuItem(wxglade_tmp_menu, RUN_MENU, "Run\tCtrl+R", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.run_menuitem)
self.runstrict_menuitem = wx.MenuItem(wxglade_tmp_menu, RUN_STRICT_MENU, "Run Strict\tF5", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.runstrict_menuitem)
self.stop_menuitem = wx.MenuItem(wxglade_tmp_menu, STOP_MENU, "Stop\tCtrl+Shift+R", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.stop_menuitem)
self.browse_menuitem = wx.MenuItem(wxglade_tmp_menu, BROWSE_MENU, "Browse\tCtrl+B", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.browse_menuitem)
self.log_console_menuitem = wx.MenuItem(wxglade_tmp_menu, LOGS_MENU, "Log Console\tCtrl+L", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.log_console_menuitem)
self.sdk_console_menuitem = wx.MenuItem(wxglade_tmp_menu, SDK_CONSOLE_MENU, "SDK Console\tCtrl+K", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.sdk_console_menuitem)
wxglade_tmp_menu.AppendSeparator()
self.deploy_menuitem = wx.MenuItem(wxglade_tmp_menu, DEPLOY_MENU, "Deploy\tCtrl+D", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.deploy_menuitem)
self.dashboard_menuitem = wx.MenuItem(wxglade_tmp_menu, DASHBOARD_MENU, "Dashboard\tCtrl+Shift+D", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.dashboard_menuitem)
self._menubar.Append(wxglade_tmp_menu, "Control")
wxglade_tmp_menu = wx.Menu()
self.launcher_help_menuitem = wx.MenuItem(wxglade_tmp_menu, wx.NewId(), "Launcher Help", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.launcher_help_menuitem)
self.app_engine_help_menuitem = wx.MenuItem(wxglade_tmp_menu, wx.NewId(), "App Engine Help", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.app_engine_help_menuitem)
self.demos_menuitem = wx.MenuItem(wxglade_tmp_menu, 6000, "Demos", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.demos_menuitem)
self.check_for_updates_menuitem = wx.MenuItem(wxglade_tmp_menu, wx.NewId(), "Check For Updates...", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.check_for_updates_menuitem)
wxglade_tmp_menu.AppendSeparator()
self.about_launcher_menuitem = wx.MenuItem(wxglade_tmp_menu, wx.NewId(), "About Launcher...", "", wx.ITEM_NORMAL)
wxglade_tmp_menu.AppendItem(self.about_launcher_menuitem)
self._menubar.Append(wxglade_tmp_menu, "Help")
self.SetMenuBar(self._menubar)
# Menu Bar end
# Tool Bar
self._toolbar = wx.ToolBar(self, -1, style=wx.TB_HORIZONTAL|wx.TB_3DBUTTONS|wx.TB_TEXT)
self.SetToolBar(self._toolbar)
self._toolbar.AddLabelTool(RUN_BUTTON, "Run", wx.Bitmap("./images/run.png", wx.BITMAP_TYPE_ANY), wx.NullBitmap, wx.ITEM_NORMAL, "", "")
self._toolbar.AddLabelTool(STOP_BUTTON, "Stop", wx.Bitmap("./images/stop.png", wx.BITMAP_TYPE_ANY), wx.NullBitmap, wx.ITEM_NORMAL, "", "")
self._toolbar.AddLabelTool(BROWSE_BUTTON, "Browse", wx.Bitmap("./images/browse.png", wx.BITMAP_TYPE_ANY), wx.NullBitmap, wx.ITEM_NORMAL, "", "")
self._toolbar.AddLabelTool(LOGS_BUTTON, "Logs", wx.Bitmap("./images/logs.png", wx.BITMAP_TYPE_ANY), wx.NullBitmap, wx.ITEM_NORMAL, "", "")
self._toolbar.AddLabelTool(SDK_CONSOLE_BUTTON, "SDK Console", wx.Bitmap("./images/sdk.png", wx.BITMAP_TYPE_ANY), wx.NullBitmap, wx.ITEM_NORMAL, "", "")
self._toolbar.AddSeparator()
self._toolbar.AddLabelTool(EDIT_BUTTON, "Edit", wx.Bitmap("./images/edit.png", wx.BITMAP_TYPE_ANY), wx.NullBitmap, wx.ITEM_NORMAL, "", "")
self._toolbar.AddSeparator()
self._toolbar.AddLabelTool(DEPLOY_BUTTON, "Deploy", wx.Bitmap("./images/deploy.png", wx.BITMAP_TYPE_ANY), wx.NullBitmap, wx.ITEM_NORMAL, "", "")
self._toolbar.AddLabelTool(DASHBOARD_BUTTON, "Dashboard", wx.Bitmap("./images/dashboard.png", wx.BITMAP_TYPE_ANY), wx.NullBitmap, wx.ITEM_NORMAL, "", "")
# Tool Bar end
self._listctrl = launcher.ResizingListCtrl(self, -1, style=wx.LC_REPORT|wx.SUNKEN_BORDER)
self.__set_properties()
self.__do_layout()
self.Bind(wx.EVT_MENU, self.OnAddNewApp, self.newproject_menuitem)
self.Bind(wx.EVT_MENU, self.OnAddApp, self.addproject_menuitem)
self.Bind(wx.EVT_MENU, self.OnRemoveApp, self.removeproject_menuitem)
self.Bind(wx.EVT_MENU, self.OnOpenSDK, self.open_sdk_menuitem)
self.Bind(wx.EVT_MENU, self.OnExit, id=wx.ID_EXIT)
self.Bind(wx.EVT_MENU, self.OnPaste, id=wx.ID_PASTE)
self.Bind(wx.EVT_MENU, self.OnAppSettings, self.appsettings_menuitem)
self.Bind(wx.EVT_MENU, self.OnEdit, self.open_edit_menuitem)
self.Bind(wx.EVT_MENU, self.OnAppOpen, self.open_explorer_menuitem)
self.Bind(wx.EVT_MENU, self.OnPreferences, self.preferences_menuitem)
self.Bind(wx.EVT_MENU, self.OnRun, self.run_menuitem)
self.Bind(wx.EVT_MENU, self.OnRunStrict, self.runstrict_menuitem)
self.Bind(wx.EVT_MENU, self.OnStop, self.stop_menuitem)
self.Bind(wx.EVT_MENU, self.OnBrowse, self.browse_menuitem)
self.Bind(wx.EVT_MENU, self.OnLogs, self.log_console_menuitem)
self.Bind(wx.EVT_MENU, self.OnSdkConsole, self.sdk_console_menuitem)
self.Bind(wx.EVT_MENU, self.OnDeploy, self.deploy_menuitem)
self.Bind(wx.EVT_MENU, self.OnDashboard, self.dashboard_menuitem)
self.Bind(wx.EVT_MENU, self.OnHelp, self.launcher_help_menuitem)
self.Bind(wx.EVT_MENU, self.OnAppEngineHelp, self.app_engine_help_menuitem)
self.Bind(wx.EVT_MENU, self.OnDemos, self.demos_menuitem)
self.Bind(wx.EVT_MENU, self.OnCheckForUpdates, self.check_for_updates_menuitem)
self.Bind(wx.EVT_MENU, self.OnAbout, self.about_launcher_menuitem)
self.Bind(wx.EVT_TOOL, self.OnRun, id=RUN_BUTTON)
self.Bind(wx.EVT_TOOL, self.OnStop, id=STOP_BUTTON)
self.Bind(wx.EVT_TOOL, self.OnBrowse, id=BROWSE_BUTTON)
self.Bind(wx.EVT_TOOL, self.OnLogs, id=LOGS_BUTTON)
self.Bind(wx.EVT_TOOL, self.OnSdkConsole, id=SDK_CONSOLE_BUTTON)
self.Bind(wx.EVT_TOOL, self.OnEdit, id=EDIT_BUTTON)
self.Bind(wx.EVT_TOOL, self.OnDeploy, id=DEPLOY_BUTTON)
self.Bind(wx.EVT_TOOL, self.OnDashboard, id=DASHBOARD_BUTTON)
self.Bind(wx.EVT_LIST_ITEM_DESELECTED, self.OnSelectionChange, self._listctrl)
self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnSelectionChange, self._listctrl)
# end wxGlade
def __set_properties(self):
# begin wxGlade: GenMainFrame.__set_properties
self.SetTitle("Google App Engine Launcher")
self.SetSize((640, 456))
self._toolbar.SetToolBitmapSize((32, 32))
self._toolbar.Realize()
self._listctrl.SetMinSize((600, 600))
# end wxGlade
def __do_layout(self):
# begin wxGlade: GenMainFrame.__do_layout
sizer_1 = wx.BoxSizer(wx.VERTICAL)
sizer_1.Add(self._listctrl, 1, wx.EXPAND, 0)
self.SetSizer(sizer_1)
self.Layout()
# end wxGlade
def OnAddNewApp(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnAddNewApp' not implemented!"
event.Skip()
def OnAddApp(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnAddApp' not implemented!"
event.Skip()
def OnRemoveApp(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnRemoveApp' not implemented!"
event.Skip()
def OnOpenSDK(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnOpenSDK' not implemented!"
event.Skip()
def OnExit(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnExit' not implemented!"
event.Skip()
def OnPaste(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnPaste' not implemented!"
event.Skip()
def OnAppSettings(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnAppSettings' not implemented!"
event.Skip()
def OnEdit(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnEdit' not implemented!"
event.Skip()
def OnAppOpen(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnAppOpen' not implemented!"
event.Skip()
def OnPreferences(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnPreferences' not implemented!"
event.Skip()
def OnRun(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnRun' not implemented!"
event.Skip()
def OnRunStrict(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnRunStrict' not implemented!"
event.Skip()
def OnStop(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnStop' not implemented!"
event.Skip()
def OnBrowse(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnBrowse' not implemented!"
event.Skip()
def OnLogs(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnLogs' not implemented!"
event.Skip()
def OnSdkConsole(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnSdkConsole' not implemented!"
event.Skip()
def OnDeploy(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnDeploy' not implemented!"
event.Skip()
def OnDashboard(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnDashboard' not implemented!"
event.Skip()
def OnHelp(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnHelp' not implemented!"
event.Skip()
def OnAppEngineHelp(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnAppEngineHelp' not implemented!"
event.Skip()
def OnDemos(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnDemos' not implemented!"
event.Skip()
def OnCheckForUpdates(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnCheckForUpdates' not implemented!"
event.Skip()
def OnAbout(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnAbout' not implemented!"
event.Skip()
def OnSelectionChange(self, event): # wxGlade: GenMainFrame.<event_handler>
print "Event handler `OnSelectionChange' not implemented!"
event.Skip()
# end of class GenMainFrame
if __name__ == "__main__":
app = wx.PySimpleApp(0)
wx.InitAllImageHandlers()
_project_frame = GenMainFrame(None, -1, "")
app.SetTopWindow(_project_frame)
_project_frame.Show()
app.MainLoop()
Show details
Hide details
Change log
r2
by j...@google.com on Sep 01, 2009
Diff
Initial land.
Go to:
/trunk/COPYING
/trunk/README
/trunk/coverage.py
/trunk/help
/trunk/help/about.html
/trunk/help/adding.html
/trunk/help/admin_console.html
/trunk/help/appicon.png
/trunk/help/button_add_delete.png
/trunk/help/button_browse.png
/trunk/help/button_dashboard.png
/trunk/help/button_deploy.png
/trunk/help/button_edit.png
/trunk/help/button_info.png
/trunk/help/button_logs.png
/trunk/help/button_reveal.png
/trunk/help/button_run.png
/trunk/help/button_run_strict.png
/trunk/help/button_sdk_console.png
/trunk/help/button_stop.png
/trunk/help/changing_settings.html
/trunk/help/creating.html
/trunk/help/deploying.html
/trunk/help/editing.html
/trunk/help/index.html
...nk/help/installing_commands.html
/trunk/help/project_running.png
/trunk/help/quickstart.html
/trunk/help/quickstart_browse.png
...elp/quickstart_browse_filled.png
.../quickstart_browse_submitted.png
/trunk/help/quickstart_window.png
/trunk/help/removing.html
/trunk/help/running.html
/trunk/help/sdk_console.html
/trunk/help/using.html
/trunk/help/viewing_logs.html
/trunk/help/x_button_browse.png
/trunk/help/x_button_dashboard.png
/trunk/help/x_button_deploy.png
/trunk/help/x_button_edit.png
/trunk/help/x_button_logs.png
/trunk/help/x_button_run.png
...nk/help/x_button_sdk_console.png
/trunk/help/x_button_stop.png
/trunk/help/x_oldindex.html
/trunk/help/x_other.html
/trunk/help/xbutton_edit.png
/trunk/html
/trunk/html/about_box.html
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 15326 bytes, 314 lines
View raw file