aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorAaron Bentley <aaron.bentley@utoronto.ca>2005-03-15 22:59:06 +0000
committerAaron Bentley <aaron.bentley@utoronto.ca>2005-03-15 22:59:06 +0000
commit3d2f26fe1ab1b3ce05472227132b3b880f588c33 (patch)
tree435575f22ed0939d728e14c03dacbbeceab822a5 /gui
parentb6362ad63362d4ebf00e01559db3569b2dc7f513 (diff)
downloadbugseverywhere-3d2f26fe1ab1b3ce05472227132b3b880f588c33.tar.gz
More futzing with GUI stuff
Diffstat (limited to 'gui')
-rwxr-xr-xgui/wxbe12
1 files changed, 9 insertions, 3 deletions
diff --git a/gui/wxbe b/gui/wxbe
index a83a896..40c584d 100755
--- a/gui/wxbe
+++ b/gui/wxbe
@@ -1,6 +1,8 @@
#!/usr/bin/env python
from wxPython.wx import *
from wxPython.lib.mixins.listctrl import wxListCtrlAutoWidthMixin
+import sys, os.path
+sys.path.append(os.path.realpath(os.path.join".."))
from libbe import bugdir
class MyApp(wxApp):
@@ -8,13 +10,17 @@ class MyApp(wxApp):
frame = wxFrame(NULL, -1, "Bug display")
frame.Show(true)
self.SetTopWindow(frame)
+ panel = wxPanel(frame, -1, style=(wxVSCROLL | wxHSCROLL))
+ panel.SetSize((500, 400))
sizer = wxBoxSizer(wxVERTICAL)
- bugs = BugList(frame)
- bugs.SetSize((400, 65))
+ sizer.Add(panel, wxGROW)
+ frame.SetSizer(sizer)
+ bugs = BugList(panel)
+ bugs.SetSize((400, -1))
# bugs.SetDimensions(-1, -1, -1, -1)
+ sizer = wxBoxSizer(wxVERTICAL)
sizer.Add(bugs, wxGROW)
frame.SetSizer(sizer)
- frame.Layout()
return true
class BugList(wxListCtrl, wxListCtrlAutoWidthMixin):