index
int64
0
50.7k
project_path
stringclasses
279 values
completion_path
stringlengths
57
199
signature_postion
stringlengths
3
11
class_position
stringlengths
3
11
function_name
stringlengths
1
62
class_name
stringlengths
0
55
body_position
stringlengths
3
11
body_position_with_comments
stringlengths
3
11
masked_class
stringlengths
14
8.32k
masked_class_with_comment
stringlengths
14
8.32k
func_body
stringlengths
9
6.72k
func_body_with_comment
stringlengths
9
6.72k
len_func_body
int64
1
643
len_input
int64
10
2.02k
len_output
int64
4
1.9k
total
int64
20
2.05k
file_code
stringlengths
14
442k
file_code_with_comment
stringlengths
14
442k
41,617
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PDFViewer.py
37,38
13,47
OnLoadButton
TestPanel
38,47
38,47
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) hsizer = wx.BoxSizer( wx.HORIZONTAL ) vsizer = wx.BoxSizer( wx.VERTICAL ) self.buttonpanel = pdfButtonPanel(self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultS...
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) hsizer = wx.BoxSizer( wx.HORIZONTAL ) vsizer = wx.BoxSizer( wx.VERTICAL ) self.buttonpanel = pdfButtonPanel(self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultS...
dlg = wx.FileDialog(self, wildcard="*.pdf") if dlg.ShowModal() == wx.ID_OK: wx.BeginBusyCursor() self.viewer.LoadFile(dlg.GetPath()) wx.EndBusyCursor() dlg.Destroy() #----------------------------------------------------------------------
dlg = wx.FileDialog(self, wildcard="*.pdf") if dlg.ShowModal() == wx.ID_OK: wx.BeginBusyCursor() self.viewer.LoadFile(dlg.GetPath()) wx.EndBusyCursor() dlg.Destroy() #----------------------------------------------------------------------
13
443
92
535
#!/usr/bin/env python import wx try: from wx.lib.pdfviewer import pdfViewer, pdfButtonPanel havePyPdf = True except ImportError: havePyPdf = False #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__in...
#!/usr/bin/env python import wx try: from wx.lib.pdfviewer import pdfViewer, pdfButtonPanel havePyPdf = True except ImportError: havePyPdf = False #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__in...
41,618
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PageSetupDialog.py
37,38
1,71
runTest
38,45
38,45
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PageSetupDialog", (50,50)...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PageSetupDialog", (50,50)...
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
7
635
30
665
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PageSetupDialog", (50,50)...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PageSetupDialog", (50,50)...
41,619
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PageSetupDialog.py
16,17
7,37
OnButton
TestPanel
17,37
17,37
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PageSetupDialog", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PageSetupDialog", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
data = wx.PageSetupDialogData() data.SetMarginTopLeft( (15, 15) ) data.SetMarginBottomRight( (15, 15) ) #data.SetDefaultMinMargins(True) data.SetPaperId(wx.PAPER_LETTER) dlg = wx.PageSetupDialog(self, data) if dlg.ShowModal() == wx.ID_OK: data = dlg....
data = wx.PageSetupDialogData() data.SetMarginTopLeft( (15, 15) ) data.SetMarginBottomRight( (15, 15) ) #data.SetDefaultMinMargins(True) data.SetPaperId(wx.PAPER_LETTER) dlg = wx.PageSetupDialog(self, data) if dlg.ShowModal() == wx.ID_OK: data = dlg....
39
118
219
337
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PageSetupDialog", (50,50)...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PageSetupDialog", (50,50)...
41,621
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PenAndBrushStyles.py
56,57
46,61
OnSize
BasePanel
57,61
57,61
class BasePanel(wx.Panel): def __init__(self, parent): wx.Panel.__init__(self, parent, style=wx.SUNKEN_BORDER|wx.WANTS_CHARS) self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM) self.Bind(wx.EVT_SIZE, self.OnSize) self.Bind(wx.EVT_PAINT, self.OnPaint) def OnSize(self, event): FILL_FU...
class BasePanel(wx.Panel): def __init__(self, parent): wx.Panel.__init__(self, parent, style=wx.SUNKEN_BORDER|wx.WANTS_CHARS) self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM) self.Bind(wx.EVT_SIZE, self.OnSize) self.Bind(wx.EVT_PAINT, self.OnPaint) def OnSize(self, event): FILL_FU...
event.Skip() self.Refresh()
event.Skip() self.Refresh()
2
135
19
154
#!/usr/bin/env python import wx import images pen_styles = [#"wx.PENSTYLE_INVALID", "wx.PENSTYLE_SOLID", "wx.PENSTYLE_DOT", "wx.PENSTYLE_LONG_DASH", "wx.PENSTYLE_SHORT_DASH", "wx.PENSTYLE_DOT_DASH", "wx.PENSTYLE_USER_DASH", ...
#!/usr/bin/env python import wx import images pen_styles = [#"wx.PENSTYLE_INVALID", "wx.PENSTYLE_SOLID", "wx.PENSTYLE_DOT", "wx.PENSTYLE_LONG_DASH", "wx.PENSTYLE_SHORT_DASH", "wx.PENSTYLE_DOT_DASH", "wx.PENSTYLE_USER_DASH", ...
41,622
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PenAndBrushStyles.py
112,113
106,142
OnPaint
BrushPanel
113,142
113,142
class BrushPanel(BasePanel): def __init__(self, parent, brush_name): BasePanel.__init__(self, parent) self.brush_name = brush_name def OnPaint(self, event): FILL_FUNC_BODY
class BrushPanel(BasePanel): def __init__(self, parent, brush_name): BasePanel.__init__(self, parent) self.brush_name = brush_name def OnPaint(self, event): FILL_FUNC_BODY
width, height = self.GetClientSize() dc = wx.AutoBufferedPaintDC(self) dc.SetBackground(wx.WHITE_BRUSH) dc.Clear() font = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT) font.MakeSmaller() dc.SetFont(font) w, labelHeight = dc.GetTextExtent('Wy') ...
width, height = self.GetClientSize() dc = wx.AutoBufferedPaintDC(self) dc.SetBackground(wx.WHITE_BRUSH) dc.Clear() font = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT) font.MakeSmaller() dc.SetFont(font) w, labelHeight = dc.GetTextExtent('Wy') ...
47
69
324
393
#!/usr/bin/env python import wx import images pen_styles = [#"wx.PENSTYLE_INVALID", "wx.PENSTYLE_SOLID", "wx.PENSTYLE_DOT", "wx.PENSTYLE_LONG_DASH", "wx.PENSTYLE_SHORT_DASH", "wx.PENSTYLE_DOT_DASH", "wx.PENSTYLE_USER_DASH", ...
#!/usr/bin/env python import wx import images pen_styles = [#"wx.PENSTYLE_INVALID", "wx.PENSTYLE_SOLID", "wx.PENSTYLE_DOT", "wx.PENSTYLE_LONG_DASH", "wx.PENSTYLE_SHORT_DASH", "wx.PENSTYLE_DOT_DASH", "wx.PENSTYLE_USER_DASH", ...
41,623
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PenAndBrushStyles.py
68,69
61,106
OnPaint
PenPanel
69,106
69,106
class PenPanel(BasePanel): def __init__(self, parent, pen_name): BasePanel.__init__(self, parent) self.pen_name = pen_name def OnPaint(self, event): FILL_FUNC_BODY
class PenPanel(BasePanel): def __init__(self, parent, pen_name): BasePanel.__init__(self, parent) self.pen_name = pen_name def OnPaint(self, event): FILL_FUNC_BODY
width, height = self.GetClientSize() dc = wx.AutoBufferedPaintDC(self) dc.SetBackground(wx.WHITE_BRUSH) dc.Clear() font = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT) font.MakeSmaller() dc.SetFont(font) w, labelHeight = dc.GetTextExtent('Wy') ...
width, height = self.GetClientSize() dc = wx.AutoBufferedPaintDC(self) dc.SetBackground(wx.WHITE_BRUSH) dc.Clear() font = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT) font.MakeSmaller() dc.SetFont(font) w, labelHeight = dc.GetTextExtent('Wy') ...
94
68
427
495
#!/usr/bin/env python import wx import images pen_styles = [#"wx.PENSTYLE_INVALID", "wx.PENSTYLE_SOLID", "wx.PENSTYLE_DOT", "wx.PENSTYLE_LONG_DASH", "wx.PENSTYLE_SHORT_DASH", "wx.PENSTYLE_DOT_DASH", "wx.PENSTYLE_USER_DASH", ...
#!/usr/bin/env python import wx import images pen_styles = [#"wx.PENSTYLE_INVALID", "wx.PENSTYLE_SOLID", "wx.PENSTYLE_DOT", "wx.PENSTYLE_LONG_DASH", "wx.PENSTYLE_SHORT_DASH", "wx.PENSTYLE_DOT_DASH", "wx.PENSTYLE_USER_DASH", ...
41,624
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Pickers.py
95,96
1,121
runTest
96,103
96,103
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) box = wx.BoxSizer(wx.VERTICAL) title = wx.StaticText(self, -1, "P...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) box = wx.BoxSizer(wx.VERTICAL) title = wx.StaticText(self, -1, "P...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
1,867
30
1,897
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) box = wx.BoxSizer(wx.VERTICAL) title = wx.StaticText(self, -1, "P...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) box = wx.BoxSizer(wx.VERTICAL) title = wx.StaticText(self, -1, "P...
41,625
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Pickers.py
89,90
7,95
OnPickFont
TestPanel
90,95
90,95
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) box = wx.BoxSizer(wx.VERTICAL) title = wx.StaticText(self, -1, "Picker Controls") title.SetFont(wx.FFont(24, wx.FONTFAMILY_SWISS, wx.FONTFLAG_BOLD)) title.S...
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) box = wx.BoxSizer(wx.VERTICAL) title = wx.StaticText(self, -1, "Picker Controls") title.SetFont(wx.FFont(24, wx.FONTFAMILY_SWISS, wx.FONTFLAG_BOLD)) title.S...
font = evt.GetFont() self.log.write("You chose: %s\n" % font.GetNativeFontInfoUserDesc()) #----------------------------------------------------------------------
font = evt.GetFont() self.log.write("You chose: %s\n" % font.GetNativeFontInfoUserDesc()) #----------------------------------------------------------------------
9
1,643
47
1,690
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) box = wx.BoxSizer(wx.VERTICAL) title = wx.StaticText(self, -1, "P...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) box = wx.BoxSizer(wx.VERTICAL) title = wx.StaticText(self, -1, "P...
41,627
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PlateButton.py
232,233
227,249
OnPaint
GradientPanel
233,249
233,249
class GradientPanel(wx.Panel): def __init__(self, parent): wx.Panel.__init__(self, parent) self.Bind(wx.EVT_PAINT, self.OnPaint) def OnPaint(self, evt): FILL_FUNC_BODY
class GradientPanel(wx.Panel): def __init__(self, parent): wx.Panel.__init__(self, parent) self.Bind(wx.EVT_PAINT, self.OnPaint) def OnPaint(self, evt): FILL_FUNC_BODY
dc = wx.PaintDC(self) gc = wx.GraphicsContext.Create(dc) col1 = wx.SystemSettings.GetColour(wx.SYS_COLOUR_3DSHADOW) col2 = platebtn.AdjustColour(col1, -90) col1 = platebtn.AdjustColour(col1, 90) rect = self.GetClientRect() grad = gc.CreateLinearGradientBrush(0, 1,...
dc = wx.PaintDC(self) gc = wx.GraphicsContext.Create(dc) col1 = wx.SystemSettings.GetColour(wx.SYS_COLOUR_3DSHADOW) col2 = platebtn.AdjustColour(col1, -90) col1 = platebtn.AdjustColour(col1, 90) rect = self.GetClientRect() grad = gc.CreateLinearGradientBrush(0, 1,...
52
75
277
352
#!/usr/bin/env python ############################################################################### # Name: PlateButtonDemo.py # # Purpose: PlateButton Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
#!/usr/bin/env python ############################################################################### # Name: PlateButtonDemo.py # # Purpose: PlateButton Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
41,628
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PlateButton.py
257,258
253,262
write
TestLog
258,262
258,262
class TestLog: def __init__(self): pass def write(self, msg): FILL_FUNC_BODY
class TestLog: def __init__(self): pass def write(self, msg): FILL_FUNC_BODY
print(msg) #----------------------------------------------------------------------
print(msg) #----------------------------------------------------------------------
2
36
16
52
#!/usr/bin/env python ############################################################################### # Name: PlateButtonDemo.py # # Purpose: PlateButton Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
#!/usr/bin/env python ############################################################################### # Name: PlateButtonDemo.py # # Purpose: PlateButton Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
41,630
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PopupMenu.py
136,137
1,157
runTest
137,144
137,144
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- text = """\ Right-click on any bare area of this panel (or Ctrl-click on Macs if you don't have a multi-button mouse) to show a popup menu. Then look at the code for this sample. Notice how the Po...
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- text = """\ Right-click on any bare area of this panel (or Ctrl-click on Macs if you don't have a multi-button mouse) to show a popup menu. Then look at the code for this sample. Notice how the Po...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
1,734
30
1,764
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- text = """\ Right-click on any bare area of this panel (or Ctrl-click on Macs if you don't have a multi-button mouse) to show a popup menu. Then look at the code for this sample. Notice how the Po...
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- text = """\ Right-click on any bare area of this panel (or Ctrl-click on Macs if you don't have a multi-button mouse) to show a popup menu. Then look at the code for this sample. Notice how the Po...
41,631
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PopupMenu.py
50,51
22,136
OnContextMenu
TestPanel
51,105
51,105
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) box = wx.BoxSizer(wx.VERTICAL) # Make and layout the controls fs = self.GetFont().GetPointSize() bf = wx.Font(fs+4, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL...
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) box = wx.BoxSizer(wx.VERTICAL) # Make and layout the controls fs = self.GetFont().GetPointSize() bf = wx.Font(fs+4, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL...
self.log.WriteText("OnContextMenu\n") # only do this part the first time so the events are only bound once # # Yet another anternate way to do IDs. Some prefer them up top to # avoid clutter, some prefer them close to the object of interest # for clarity. if not ...
self.log.WriteText("OnContextMenu\n") # only do this part the first time so the events are only bound once # # Yet another anternate way to do IDs. Some prefer them up top to # avoid clutter, some prefer them close to the object of interest # for clarity. if not ...
185
661
860
1,521
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- text = """\ Right-click on any bare area of this panel (or Ctrl-click on Macs if you don't have a multi-button mouse) to show a popup menu. Then look at the code for this sample. Notice how the Po...
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- text = """\ Right-click on any bare area of this panel (or Ctrl-click on Macs if you don't have a multi-button mouse) to show a popup menu. Then look at the code for this sample. Notice how the Po...
41,633
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PopupWindow.py
154,155
122,187
OnShowPopupTransient
TestPanel
155,169
155,169
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log b = wx.Button(self, -1, "Show wx.PopupWindow", (25, 50)) self.Bind(wx.EVT_BUTTON, self.OnShowPopup, b) b = wx.Button(self, -1, "Show wx.PopupTransientWindow", (25,...
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log b = wx.Button(self, -1, "Show wx.PopupWindow", (25, 50)) self.Bind(wx.EVT_BUTTON, self.OnShowPopup, b) b = wx.Button(self, -1, "Show wx.PopupTransientWindow", (25,...
win = TestTransientPopup(self, wx.SIMPLE_BORDER, self.log) # Show the popup right below or above the button # depending on available screen space... btn = evt.GetEventObject() pos = btn.ClientToScreen( (0,0) ) ...
win = TestTransientPopup(self, wx.SIMPLE_BORDER, self.log) # Show the popup right below or above the button # depending on available screen space... btn = evt.GetEventObject() pos = btn.ClientToScreen( (0,0) ) ...
36
605
129
734
#!/usr/bin/env python # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Some issues with the listbox example; I tried correcting # it but it's still not working the way it should. Commented # out for now, as I found it. import wx #----------------------------------------------------------------------...
#!/usr/bin/env python # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Some issues with the listbox example; I tried correcting # it but it's still not working the way it should. Commented # out for now, as I found it. import wx #----------------------------------------------------------------------...
41,634
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PopupWindow.py
59,60
14,76
OnMouseMotion
TestPopup
60,66
60,66
class TestPopup(wx.PopupWindow): """Adds a bit of text and mouse movement to the wx.PopupWindow""" def __init__(self, parent, style): wx.PopupWindow.__init__(self, parent, style) pnl = self.pnl = wx.Panel(self) pnl.SetBackgroundColour("CADET BLUE") st = wx.StaticText(pnl, -1, ...
class TestPopup(wx.PopupWindow): """Adds a bit of text and mouse movement to the wx.PopupWindow""" def __init__(self, parent, style): wx.PopupWindow.__init__(self, parent, style) pnl = self.pnl = wx.Panel(self) pnl.SetBackgroundColour("CADET BLUE") st = wx.StaticText(pnl, -1, ...
if evt.Dragging() and evt.LeftIsDown(): dPos = evt.GetEventObject().ClientToScreen(evt.GetPosition()) nPos = (self.wPos.x + (dPos.x - self.ldPos.x), self.wPos.y + (dPos.y - self.ldPos.y)) self.Move(nPos)
if evt.Dragging() and evt.LeftIsDown(): dPos = evt.GetEventObject().ClientToScreen(evt.GetPosition()) nPos = (self.wPos.x + (dPos.x - self.ldPos.x), self.wPos.y + (dPos.y - self.ldPos.y)) self.Move(nPos)
20
678
103
781
#!/usr/bin/env python # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Some issues with the listbox example; I tried correcting # it but it's still not working the way it should. Commented # out for now, as I found it. import wx #----------------------------------------------------------------------...
#!/usr/bin/env python # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Some issues with the listbox example; I tried correcting # it but it's still not working the way it should. Commented # out for now, as I found it. import wx #----------------------------------------------------------------------...
41,635
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PopupWindow.py
200,201
187,212
OnListBox
TestPopupWithListbox
201,206
201,206
class TestPopupWithListbox(wx.PopupWindow): def __init__(self, parent, style, log): wx.PopupWindow.__init__(self, parent, style) self.log = log import keyword self.lb = wx.ListBox(self, -1, choices = keyword.kwlist) #sz = self.lb.GetBestSize() self.SetSize((150, 75)) ...
class TestPopupWithListbox(wx.PopupWindow): def __init__(self, parent, style, log): wx.PopupWindow.__init__(self, parent, style) self.log = log import keyword self.lb = wx.ListBox(self, -1, choices = keyword.kwlist) #sz = self.lb.GetBestSize() self.SetSize((150, 75)) ...
obj = evt.GetEventObject() self.log.write("OnListBox: %s\n" % obj) self.log.write('Selected: %s\n' % obj.GetString(evt.GetInt())) evt.Skip()
obj = evt.GetEventObject() self.log.write("OnListBox: %s\n" % obj) self.log.write('Selected: %s\n' % obj.GetString(evt.GetInt())) evt.Skip()
12
241
71
312
#!/usr/bin/env python # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Some issues with the listbox example; I tried correcting # it but it's still not working the way it should. Commented # out for now, as I found it. import wx #----------------------------------------------------------------------...
#!/usr/bin/env python # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Some issues with the listbox example; I tried correcting # it but it's still not working the way it should. Commented # out for now, as I found it. import wx #----------------------------------------------------------------------...
41,636
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PopupWindow.py
113,114
76,122
OnButton
TestTransientPopup
114,122
114,122
class TestTransientPopup(wx.PopupTransientWindow): """Adds a bit of text and mouse movement to the wx.PopupWindow""" def __init__(self, parent, style, log): wx.PopupTransientWindow.__init__(self, parent, style) self.log = log panel = wx.Panel(self) panel.SetBackgroundColour("#FFB...
class TestTransientPopup(wx.PopupTransientWindow): """Adds a bit of text and mouse movement to the wx.PopupWindow""" def __init__(self, parent, style, log): wx.PopupTransientWindow.__init__(self, parent, style) self.log = log panel = wx.Panel(self) panel.SetBackgroundColour("#FFB...
btn = evt.GetEventObject() if btn.GetLabel() == "Press Me": btn.SetLabel("Pressed") else: btn.SetLabel("Press Me")
btn = evt.GetEventObject() if btn.GetLabel() == "Press Me": btn.SetLabel("Pressed") else: btn.SetLabel("Press Me")
12
467
59
526
#!/usr/bin/env python # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Some issues with the listbox example; I tried correcting # it but it's still not working the way it should. Commented # out for now, as I found it. import wx #----------------------------------------------------------------------...
#!/usr/bin/env python # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Some issues with the listbox example; I tried correcting # it but it's still not working the way it should. Commented # out for now, as I found it. import wx #----------------------------------------------------------------------...
41,637
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PrintDialog.py
38,39
1,61
runTest
39,45
39,45
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PrintDialog", (50,50)) ...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PrintDialog", (50,50)) ...
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
7
468
28
496
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PrintDialog", (50,50)) ...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PrintDialog", (50,50)) ...
41,638
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PrintDialog.py
16,17
7,38
OnButton
TestPanel
17,38
17,38
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PrintDialog", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PrintDialog", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
data = wx.PrintDialogData() data.EnableSelection(True) data.EnablePrintToFile(True) data.EnablePageNumbers(True) data.SetMinPage(1) data.SetMaxPage(5) # data.SetAllPages(True) dlg = wx.PrintDialog(self, data) if dlg.ShowModal() == wx.ID_OK: ...
data = wx.PrintDialogData() data.EnableSelection(True) data.EnablePrintToFile(True) data.EnablePageNumbers(True) data.SetMinPage(1) data.SetMaxPage(5) # data.SetAllPages(True) dlg = wx.PrintDialog(self, data) if dlg.ShowModal() == wx.ID_OK: ...
27
117
180
297
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PrintDialog", (50,50)) ...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a PrintDialog", (50,50)) ...
41,640
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PrintFramework.py
46,47
9,92
OnPrintPage
MyPrintout
47,92
47,92
class MyPrintout(wx.Printout): def __init__(self, canvas, log): wx.Printout.__init__(self) self.canvas = canvas self.log = log def OnBeginDocument(self, start, end): self.log.WriteText("MyPrintout.OnBeginDocument\n") return super(MyPrintout, self).OnBeginDocument(start, ...
class MyPrintout(wx.Printout): def __init__(self, canvas, log): wx.Printout.__init__(self) self.canvas = canvas self.log = log def OnBeginDocument(self, start, end): self.log.WriteText("MyPrintout.OnBeginDocument\n") return super(MyPrintout, self).OnBeginDocument(start, ...
self.log.WriteText("MyPrintout.OnPrintPage: %d\n" % page) dc = self.GetDC() #------------------------------------------- # One possible method of setting scaling factors... maxX = self.canvas.getWidth() maxY = self.canvas.getHeight() # Let's have at least 50 de...
self.log.WriteText("MyPrintout.OnPrintPage: %d\n" % page) dc = self.GetDC() #------------------------------------------- # One possible method of setting scaling factors... maxX = self.canvas.getWidth() maxY = self.canvas.getHeight() # Let's have at least 50 de...
155
417
450
867
#!/usr/bin/env python import wx import ScrolledWindow #---------------------------------------------------------------------- class MyPrintout(wx.Printout): def __init__(self, canvas, log): wx.Printout.__init__(self) self.canvas = canvas self.log = log def OnBeginDocument(self, star...
#!/usr/bin/env python import wx import ScrolledWindow #---------------------------------------------------------------------- class MyPrintout(wx.Printout): def __init__(self, canvas, log): wx.Printout.__init__(self) self.canvas = canvas self.log = log def OnBeginDocument(self, star...
41,641
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PrintFramework.py
156,157
92,171
OnDoPrint
TestPrintPanel
157,171
157,171
class TestPrintPanel(wx.Panel): def __init__(self, parent, frame, log): wx.Panel.__init__(self, parent, -1) self.log = log self.frame = frame self.printData = wx.PrintData() self.printData.SetPaperId(wx.PAPER_LETTER) self.printData.SetPrintMode(wx.PRINT_MODE_PRINTER)...
class TestPrintPanel(wx.Panel): def __init__(self, parent, frame, log): wx.Panel.__init__(self, parent, -1) self.log = log self.frame = frame self.printData = wx.PrintData() self.printData.SetPaperId(wx.PAPER_LETTER) self.printData.SetPrintMode(wx.PRINT_MODE_PRINTER)...
pdd = wx.PrintDialogData(self.printData) pdd.SetToPage(2) printer = wx.Printer(pdd) printout = MyPrintout(self.canvas, self.log) if not printer.Print(self.frame, printout, True): wx.MessageBox("There was a problem printing.\nPerhaps your current printer is not set co...
pdd = wx.PrintDialogData(self.printData) pdd.SetToPage(2) printer = wx.Printer(pdd) printout = MyPrintout(self.canvas, self.log) if not printer.Print(self.frame, printout, True): wx.MessageBox("There was a problem printing.\nPerhaps your current printer is not set co...
38
804
163
967
#!/usr/bin/env python import wx import ScrolledWindow #---------------------------------------------------------------------- class MyPrintout(wx.Printout): def __init__(self, canvas, log): wx.Printout.__init__(self) self.canvas = canvas self.log = log def OnBeginDocument(self, star...
#!/usr/bin/env python import wx import ScrolledWindow #---------------------------------------------------------------------- class MyPrintout(wx.Printout): def __init__(self, canvas, log): wx.Printout.__init__(self) self.canvas = canvas self.log = log def OnBeginDocument(self, star...
41,642
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Process.py
135,136
1,169
runTest
136,143
136,143
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, ID, log): wx.Panel.__init__(self, parent, ID) self.log = log self.process = None self.Bind(wx.EVT_IDLE, self.OnIdle) ...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, ID, log): wx.Panel.__init__(self, parent, ID) self.log = log self.process = None self.Bind(wx.EVT_IDLE, self.OnIdle) ...
win = TestPanel(nb, -1, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, -1, log) return win #----------------------------------------------------------------------
8
1,745
33
1,778
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, ID, log): wx.Panel.__init__(self, parent, ID) self.log = log self.process = None self.Bind(wx.EVT_IDLE, self.OnIdle) ...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, ID, log): wx.Panel.__init__(self, parent, ID) self.log = log self.process = None self.Bind(wx.EVT_IDLE, self.OnIdle) ...
41,643
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Process.py
63,64
7,135
OnExecuteBtn
TestPanel
64,79
64,79
class TestPanel(wx.Panel): def __init__(self, parent, ID, log): wx.Panel.__init__(self, parent, ID) self.log = log self.process = None self.Bind(wx.EVT_IDLE, self.OnIdle) # We can either derive from wx.Process and override OnTerminate # or we can let wx.Process send...
class TestPanel(wx.Panel): def __init__(self, parent, ID, log): wx.Panel.__init__(self, parent, ID) self.log = log self.process = None self.Bind(wx.EVT_IDLE, self.OnIdle) # We can either derive from wx.Process and override OnTerminate # or we can let wx.Process send...
cmd = self.cmd.GetValue() self.process = wx.Process(self) self.process.Redirect() pid = wx.Execute(cmd, wx.EXEC_ASYNC, self.process) self.log.write('OnExecuteBtn: "%s" pid: %s\n' % (cmd, pid)) self.inp.Enable(True) self.sndBtn.Enable(True) self.termBtn.E...
cmd = self.cmd.GetValue() self.process = wx.Process(self) self.process.Redirect() pid = wx.Execute(cmd, wx.EXEC_ASYNC, self.process) self.log.write('OnExecuteBtn: "%s" pid: %s\n' % (cmd, pid)) self.inp.Enable(True) self.sndBtn.Enable(True) self.termBtn.E...
25
1,320
170
1,490
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, ID, log): wx.Panel.__init__(self, parent, ID) self.log = log self.process = None self.Bind(wx.EVT_IDLE, self.OnIdle) ...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, ID, log): wx.Panel.__init__(self, parent, ID) self.log = log self.process = None self.Bind(wx.EVT_IDLE, self.OnIdle) ...
41,644
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ProgressDialog.py
61,62
1,88
runTest
62,68
62,68
#!/usr/bin/env python # 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Updated for wx namespace # # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o wx.ProgressDialog appears to be broken. No abort button # and it's not possible to dismiss it otherwise. import wx #----------------------------...
#!/usr/bin/env python # 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Updated for wx namespace # # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o wx.ProgressDialog appears to be broken. No abort button # and it's not possible to dismiss it otherwise. import wx #----------------------------...
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
7
746
28
774
#!/usr/bin/env python # 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Updated for wx namespace # # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o wx.ProgressDialog appears to be broken. No abort button # and it's not possible to dismiss it otherwise. import wx #----------------------------...
#!/usr/bin/env python # 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Updated for wx namespace # # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o wx.ProgressDialog appears to be broken. No abort button # and it's not possible to dismiss it otherwise. import wx #----------------------------...
41,645
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ProgressDialog.py
25,26
16,61
OnButton
TestPanel
26,61
26,61
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a ProgressDialog", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a ProgressDialog", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
max = 80 dlg = wx.ProgressDialog("Progress dialog example", "An informative message", maximum = max, parent=self, style = 0 | wx.PD_APP_MODAL ...
max = 80 dlg = wx.ProgressDialog("Progress dialog example", "An informative message", maximum = max, parent=self, style = 0 | wx.PD_APP_MODAL ...
68
117
293
410
#!/usr/bin/env python # 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Updated for wx namespace # # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o wx.ProgressDialog appears to be broken. No abort button # and it's not possible to dismiss it otherwise. import wx #----------------------------...
#!/usr/bin/env python # 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Updated for wx namespace # # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o wx.ProgressDialog appears to be broken. No abort button # and it's not possible to dismiss it otherwise. import wx #----------------------------...
41,646
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PyColourChooser.py
22,23
1,61
runTest
23,28
23,28
#!/usr/bin/env python import wx import wx.lib.colourchooser as cc #--------------------------------------------------------------- class TestColourChooser(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log chooser = cc.PyColourChooser(self, -1)...
#!/usr/bin/env python import wx import wx.lib.colourchooser as cc #--------------------------------------------------------------- class TestColourChooser(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log chooser = cc.PyColourChooser(self, -1)...
win = TestColourChooser(nb, log) return win #---------------------------------------------------------------
win = TestColourChooser(nb, log) return win #---------------------------------------------------------------
7
491
31
522
#!/usr/bin/env python import wx import wx.lib.colourchooser as cc #--------------------------------------------------------------- class TestColourChooser(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log chooser = cc.PyColourChooser(self, -1)...
#!/usr/bin/env python import wx import wx.lib.colourchooser as cc #--------------------------------------------------------------- class TestColourChooser(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log chooser = cc.PyColourChooser(self, -1)...
41,647
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PyCrust.py
9,10
1,22
runTest
10,15
10,15
#!/usr/bin/env python import wx.py as py #---------------------------------------------------------------------- intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % py.version.VERSION def runTest(frame, nb, log): FILL_FUNC_BODYoverview = py.filling.__doc__ + "\n\n" + py.crust.__doc__ if __name__ == '__m...
#!/usr/bin/env python import wx.py as py #---------------------------------------------------------------------- intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % py.version.VERSION def runTest(frame, nb, log): FILL_FUNC_BODYoverview = py.filling.__doc__ + "\n\n" + py.crust.__doc__ if __name__ == '__m...
win = py.crust.Crust(nb, intro=intro) return win #----------------------------------------------------------------------
win = py.crust.Crust(nb, intro=intro) return win #----------------------------------------------------------------------
7
149
33
182
#!/usr/bin/env python import wx.py as py #---------------------------------------------------------------------- intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % py.version.VERSION def runTest(frame, nb, log): FILL_FUNC_BODYoverview = py.filling.__doc__ + "\n\n" + py.crust.__doc__ if __name__ == '__m...
#!/usr/bin/env python import wx.py as py #---------------------------------------------------------------------- intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % py.version.VERSION def runTest(frame, nb, log): FILL_FUNC_BODYoverview = py.filling.__doc__ + "\n\n" + py.crust.__doc__ if __name__ == '__m...
41,648
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PyPlot.py
41,42
1,84
runTest
42,57
42,57
import wx hadImportError = False try: import numpy import wx.lib.plot except ImportError: hadImportError = True ############################################################################# # Where's the code??? # # The wx.lib.plot package comes with its own excellent demo built in, for # testing purpos...
import wx hadImportError = False try: import numpy import wx.lib.plot except ImportError: hadImportError = True ############################################################################# # Where's the code??? # # The wx.lib.plot package comes with its own excellent demo built in, for # testing purpos...
if not hadImportError: win = TestPanel(nb, log) else: from wx.lib.msgpanel import MessagePanel win = MessagePanel(nb, """\ This demo requires the numpy module, which could not be imported. It probably is not installed (it's not part of the standard Python distribution). See https://pypi....
if not hadImportError: win = TestPanel(nb, log) else: from wx.lib.msgpanel import MessagePanel win = MessagePanel(nb, """\ This demo requires the numpy module, which could not be imported. It probably is not installed (it's not part of the standard Python distribution). See https://pypi....
53
562
146
708
import wx hadImportError = False try: import numpy import wx.lib.plot except ImportError: hadImportError = True ############################################################################# # Where's the code??? # # The wx.lib.plot package comes with its own excellent demo built in, for # testing purpos...
import wx hadImportError = False try: import numpy import wx.lib.plot except ImportError: hadImportError = True ############################################################################# # Where's the code??? # # The wx.lib.plot package comes with its own excellent demo built in, for # testing purpos...
41,649
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PyPlot.py
33,34
24,41
OnButton
TestPanel
34,41
34,41
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Show the PyPlot sample", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Show the PyPlot sample", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
from wx.lib.plot.examples.demo import PlotDemoMainFrame win = PlotDemoMainFrame(self, -1, "wx.lib.plot Demo") win.Show() #---------------------------------------------------------------------------
from wx.lib.plot.examples.demo import PlotDemoMainFrame win = PlotDemoMainFrame(self, -1, "wx.lib.plot Demo") win.Show() #---------------------------------------------------------------------------
12
117
65
182
import wx hadImportError = False try: import numpy import wx.lib.plot except ImportError: hadImportError = True ############################################################################# # Where's the code??? # # The wx.lib.plot package comes with its own excellent demo built in, for # testing purpos...
import wx hadImportError = False try: import numpy import wx.lib.plot except ImportError: hadImportError = True ############################################################################# # Where's the code??? # # The wx.lib.plot package comes with its own excellent demo built in, for # testing purpos...
41,650
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PyShell.py
9,10
1,23
runTest
10,15
10,15
#!/usr/bin/env python import wx.py as py #---------------------------------------------------------------------- intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % py.version.VERSION def runTest(frame, nb, log): FILL_FUNC_BODYoverview = py.shell.__doc__ if __name__ == '__main__': import sys,os ...
#!/usr/bin/env python import wx.py as py #---------------------------------------------------------------------- intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % py.version.VERSION def runTest(frame, nb, log): FILL_FUNC_BODYoverview = py.shell.__doc__ if __name__ == '__main__': import sys,os ...
win = py.shell.Shell(nb, -1, introText=intro) return win #----------------------------------------------------------------------
win = py.shell.Shell(nb, -1, introText=intro) return win #----------------------------------------------------------------------
8
134
35
169
#!/usr/bin/env python import wx.py as py #---------------------------------------------------------------------- intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % py.version.VERSION def runTest(frame, nb, log): FILL_FUNC_BODYoverview = py.shell.__doc__ if __name__ == '__main__': import sys,os ...
#!/usr/bin/env python import wx.py as py #---------------------------------------------------------------------- intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % py.version.VERSION def runTest(frame, nb, log): FILL_FUNC_BODYoverview = py.shell.__doc__ if __name__ == '__main__': import sys,os ...
41,651
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PythonEvents.py
89,90
1,110
runTest
90,96
90,96
#!/usr/bin/env python import sys import wx #---------------------------------------------------------------------- # This shows the new 'official' way to do custom events as derived # from the wxPython 2.5 migration guide. #######################################################\ # *** Old and busted *** ...
#!/usr/bin/env python import sys import wx #---------------------------------------------------------------------- # This shows the new 'official' way to do custom events as derived # from the wxPython 2.5 migration guide. #######################################################\ # *** Old and busted *** ...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
972
28
1,000
#!/usr/bin/env python import sys import wx #---------------------------------------------------------------------- # This shows the new 'official' way to do custom events as derived # from the wxPython 2.5 migration guide. #######################################################\ # *** Old and busted *** ...
#!/usr/bin/env python import sys import wx #---------------------------------------------------------------------- # This shows the new 'official' way to do custom events as derived # from the wxPython 2.5 migration guide. #######################################################\ # *** Old and busted *** ...
41,652
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PythonEvents.py
51,52
46,62
OnLeftDown
MyButton
52,62
52,62
class MyButton(wx.Button): def __init__(self, parent, id, txt, pos): wx.Button.__init__(self, parent, id, txt, pos) self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown) def OnLeftDown(self, event): FILL_FUNC_BODY
class MyButton(wx.Button): def __init__(self, parent, id, txt, pos): wx.Button.__init__(self, parent, id, txt, pos) self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown) def OnLeftDown(self, event): FILL_FUNC_BODY
pt = event.GetPosition() evt = MyEvent(myEVT_BUTTON_CLICKPOS, self.GetId()) evt.SetMyVal(pt) #print(id(evt), sys.getrefcount(evt)) self.GetEventHandler().ProcessEvent(evt) #print(id(evt), sys.getrefcount(evt)) event.Skip()
pt = event.GetPosition() evt = MyEvent(myEVT_BUTTON_CLICKPOS, self.GetId()) evt.SetMyVal(pt) #print(id(evt), sys.getrefcount(evt)) self.GetEventHandler().ProcessEvent(evt) #print(id(evt), sys.getrefcount(evt)) event.Skip()
14
88
117
205
#!/usr/bin/env python import sys import wx #---------------------------------------------------------------------- # This shows the new 'official' way to do custom events as derived # from the wxPython 2.5 migration guide. #######################################################\ # *** Old and busted *** ...
#!/usr/bin/env python import sys import wx #---------------------------------------------------------------------- # This shows the new 'official' way to do custom events as derived # from the wxPython 2.5 migration guide. #######################################################\ # *** Old and busted *** ...
41,653
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PythonEvents.py
42,43
30,46
GetMyVal
MyEvent
43,46
43,46
class MyEvent(wx.PyCommandEvent): def __init__(self, evtType, id): wx.PyCommandEvent.__init__(self, evtType, id) self.myVal = None #def __del__(self): # print('__del__') # wx.PyCommandEvent.__del__(self) def SetMyVal(self, val): self.myVal = val def GetMyVal(self...
class MyEvent(wx.PyCommandEvent): def __init__(self, evtType, id): wx.PyCommandEvent.__init__(self, evtType, id) self.myVal = None #def __del__(self): # print('__del__') # wx.PyCommandEvent.__del__(self) def SetMyVal(self, val): self.myVal = val def GetMyVal(self...
return self.myVal
return self.myVal
2
125
12
137
#!/usr/bin/env python import sys import wx #---------------------------------------------------------------------- # This shows the new 'official' way to do custom events as derived # from the wxPython 2.5 migration guide. #######################################################\ # *** Old and busted *** ...
#!/usr/bin/env python import sys import wx #---------------------------------------------------------------------- # This shows the new 'official' way to do custom events as derived # from the wxPython 2.5 migration guide. #######################################################\ # *** Old and busted *** ...
41,654
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/PythonEvents.py
82,83
62,89
OnMyEvent
TestPanel
83,89
83,89
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log b = MyButton(self, -1, " Click me ", (30,30)) self.Bind(wx.EVT_BUTTON, self.OnClick, id=b.GetId()) # This is our custom event binder created above. self.Bi...
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log b = MyButton(self, -1, " Click me ", (30,30)) self.Bind(wx.EVT_BUTTON, self.OnClick, id=b.GetId()) # This is our custom event binder created above. self.Bi...
#print(id(event), sys.getrefcount(event)) self.log.WriteText("MyEvent: %s\n" % (event.GetMyVal(), ) ) #----------------------------------------------------------------------
#print(id(event), sys.getrefcount(event)) self.log.WriteText("MyEvent: %s\n" % (event.GetMyVal(), ) ) #----------------------------------------------------------------------
9
228
57
285
#!/usr/bin/env python import sys import wx #---------------------------------------------------------------------- # This shows the new 'official' way to do custom events as derived # from the wxPython 2.5 migration guide. #######################################################\ # *** Old and busted *** ...
#!/usr/bin/env python import sys import wx #---------------------------------------------------------------------- # This shows the new 'official' way to do custom events as derived # from the wxPython 2.5 migration guide. #######################################################\ # *** Old and busted *** ...
41,655
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/RadioBox.py
48,49
1,68
runTest
49,54
49,54
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestRadioBox(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) #self.SetBackgroundColour(wx.BLUE) sampleList = ['zero', ...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestRadioBox(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) #self.SetBackgroundColour(wx.BLUE) sampleList = ['zero', ...
win = TestRadioBox(nb, log) return win
win = TestRadioBox(nb, log) return win
6
627
25
652
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestRadioBox(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) #self.SetBackgroundColour(wx.BLUE) sampleList = ['zero', ...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestRadioBox(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) #self.SetBackgroundColour(wx.BLUE) sampleList = ['zero', ...
41,656
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/RadioBox.py
43,44
7,48
EvtRadioBox
TestRadioBox
44,48
44,48
class TestRadioBox(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) #self.SetBackgroundColour(wx.BLUE) sampleList = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight'] sizer = wx.BoxSiz...
class TestRadioBox(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) #self.SetBackgroundColour(wx.BLUE) sampleList = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight'] sizer = wx.BoxSiz...
self.log.WriteText('EvtRadioBox: %d\n' % event.GetInt()) #---------------------------------------------------------------------------
self.log.WriteText('EvtRadioBox: %d\n' % event.GetInt()) #---------------------------------------------------------------------------
5
452
36
488
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestRadioBox(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) #self.SetBackgroundColour(wx.BLUE) sampleList = ['zero', ...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestRadioBox(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) #self.SetBackgroundColour(wx.BLUE) sampleList = ['zero', ...
41,657
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/RadioButton.py
101,102
1,128
runTest
102,108
102,108
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel( wx.Panel ): def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1 ) self.log = log panel = wx.Panel( self, -1 ) # Layout controls on panel: ...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel( wx.Panel ): def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1 ) self.log = log panel = wx.Panel( self, -1 ) # Layout controls on panel: ...
win = TestPanel( nb, log ) return win #----------------------------------------------------------------------
win = TestPanel( nb, log ) return win #----------------------------------------------------------------------
9
1,515
29
1,544
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel( wx.Panel ): def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1 ) self.log = log panel = wx.Panel( self, -1 ) # Layout controls on panel: ...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel( wx.Panel ): def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1 ) self.log = log panel = wx.Panel( self, -1 ) # Layout controls on panel: ...
41,658
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/RadioButton.py
89,90
7,101
OnGroup2Select
TestPanel
90,101
90,101
class TestPanel( wx.Panel ): def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1 ) self.log = log panel = wx.Panel( self, -1 ) # Layout controls on panel: vs = wx.BoxSizer( wx.VERTICAL ) box1_title = wx.StaticBox( panel, -1, "Group 1" ) b...
class TestPanel( wx.Panel ): def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1 ) self.log = log panel = wx.Panel( self, -1 ) # Layout controls on panel: vs = wx.BoxSizer( wx.VERTICAL ) box1_title = wx.StaticBox( panel, -1, "Group 1" ) b...
radio_selected = event.GetEventObject() self.log.write('Group2 %s selected\n' % radio_selected.GetLabel() ) for radio, text in self.group2_ctrls: if radio is radio_selected: text.Enable(True) else: text.Enable(False) #--------------------...
radio_selected = event.GetEventObject() self.log.write('Group2 %s selected\n' % radio_selected.GetLabel() ) for radio, text in self.group2_ctrls: if radio is radio_selected: text.Enable(True) else: text.Enable(False) #--------------------...
22
1,216
99
1,315
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel( wx.Panel ): def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1 ) self.log = log panel = wx.Panel( self, -1 ) # Layout controls on panel: ...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel( wx.Panel ): def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1 ) self.log = log panel = wx.Panel( self, -1 ) # Layout controls on panel: ...
41,659
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/RearrangeDialog.py
139,140
1,161
runTest
140,147
140,147
#!/usr/bin/env python import random import wx globalItems = ['New', 'Open', 'Save', 'Save As...', 'Cut', 'Copy', 'Paste', 'Delete', 'Select All', 'Find', 'About', 'Help', 'Exit', 'Python is the Best!'] random.shuffle(globalItems) globalOrder = [] length = len(globalItems) # print(length...
#!/usr/bin/env python import random import wx globalItems = ['New', 'Open', 'Save', 'Save As...', 'Cut', 'Copy', 'Paste', 'Delete', 'Select All', 'Find', 'About', 'Help', 'Exit', 'Python is the Best!'] random.shuffle(globalItems) globalOrder = [] length = len(globalItems) # print(length...
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
7
1,671
30
1,701
#!/usr/bin/env python import random import wx globalItems = ['New', 'Open', 'Save', 'Save As...', 'Cut', 'Copy', 'Paste', 'Delete', 'Select All', 'Find', 'About', 'Help', 'Exit', 'Python is the Best!'] random.shuffle(globalItems) globalOrder = [] length = len(globalItems) # print(length...
#!/usr/bin/env python import random import wx globalItems = ['New', 'Open', 'Save', 'Save As...', 'Cut', 'Copy', 'Paste', 'Delete', 'Select All', 'Find', 'About', 'Help', 'Exit', 'Python is the Best!'] random.shuffle(globalItems) globalOrder = [] length = len(globalItems) # print(length...
41,660
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/RearrangeDialog.py
89,90
23,105
OnContextMenu
MyRearrangeDialog
90,105
90,105
class MyRearrangeDialog(wx.RearrangeDialog): def __init__(self, parent, message, title, order, items, log): wx.RearrangeDialog.__init__(self, parent, message, title, order, items) self.log = log panel = wx.Panel(self) sizer = wx.BoxSizer(wx.HORIZONTAL) self.lc = self.GetList...
class MyRearrangeDialog(wx.RearrangeDialog): def __init__(self, parent, message, title, order, items, log): wx.RearrangeDialog.__init__(self, parent, message, title, order, items) self.log = log panel = wx.Panel(self) sizer = wx.BoxSizer(wx.HORIZONTAL) self.lc = self.GetList...
menu = wx.Menu() ID_UNCHECKALL = 1000 ID_CHECKALL = 1001 mi1 = wx.MenuItem(menu, ID_UNCHECKALL, 'UnCheck All', 'UnCheck All') mi2 = wx.MenuItem(menu, ID_CHECKALL, 'Check All', 'Check All') menu.Append(mi1) menu.Append(mi2) menu.Bind(wx.EVT_MENU, self.OnUnC...
menu = wx.Menu() ID_UNCHECKALL = 1000 ID_CHECKALL = 1001 mi1 = wx.MenuItem(menu, ID_UNCHECKALL, 'UnCheck All', 'UnCheck All') mi2 = wx.MenuItem(menu, ID_CHECKALL, 'Check All', 'Check All') menu.Append(mi1) menu.Append(mi2) menu.Bind(wx.EVT_MENU, self.OnUnC...
36
843
204
1,047
#!/usr/bin/env python import random import wx globalItems = ['New', 'Open', 'Save', 'Save As...', 'Cut', 'Copy', 'Paste', 'Delete', 'Select All', 'Find', 'About', 'Help', 'Exit', 'Python is the Best!'] random.shuffle(globalItems) globalOrder = [] length = len(globalItems) # print(length...
#!/usr/bin/env python import random import wx globalItems = ['New', 'Open', 'Save', 'Save As...', 'Cut', 'Copy', 'Paste', 'Delete', 'Select All', 'Find', 'About', 'Help', 'Exit', 'Python is the Best!'] random.shuffle(globalItems) globalOrder = [] length = len(globalItems) # print(length...
41,661
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/RearrangeDialog.py
113,114
105,139
OnButton
TestPanel
114,139
114,139
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a RearrangeDialog", (50, 50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a RearrangeDialog", (50, 50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
global globalOrder global globalItems global globalCheckedStrings rd = MyRearrangeDialog(self, message="Rearrangeify Stuff!", title="This is a wx.RearrangeDialog", order=globalOrder, items=globalItems, log=self.log) if...
global globalOrder global globalItems global globalCheckedStrings rd = MyRearrangeDialog(self, message="Rearrangeify Stuff!", title="This is a wx.RearrangeDialog", order=globalOrder, items=globalItems, log=self.log) if...
51
119
271
390
#!/usr/bin/env python import random import wx globalItems = ['New', 'Open', 'Save', 'Save As...', 'Cut', 'Copy', 'Paste', 'Delete', 'Select All', 'Find', 'About', 'Help', 'Exit', 'Python is the Best!'] random.shuffle(globalItems) globalOrder = [] length = len(globalItems) # print(length...
#!/usr/bin/env python import random import wx globalItems = ['New', 'Open', 'Save', 'Save As...', 'Cut', 'Copy', 'Paste', 'Delete', 'Select All', 'Find', 'About', 'Help', 'Exit', 'Python is the Best!'] random.shuffle(globalItems) globalOrder = [] length = len(globalItems) # print(length...
41,664
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ResizeWidget.py
56,57
1,77
runTest
57,64
57,64
#!/usr/bin/env python import wx import wx.lib.resizewidget as rw #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) rw1 = rw.ResizeWidget(self) rw2 ...
#!/usr/bin/env python import wx import wx.lib.resizewidget as rw #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) rw1 = rw.ResizeWidget(self) rw2 ...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
666
30
696
#!/usr/bin/env python import wx import wx.lib.resizewidget as rw #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) rw1 = rw.ResizeWidget(self) rw2 ...
#!/usr/bin/env python import wx import wx.lib.resizewidget as rw #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) rw1 = rw.ResizeWidget(self) rw2 ...
41,665
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ResizeWidget.py
47,48
8,56
OnLayoutNeeded
TestPanel
48,50
48,50
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) rw1 = rw.ResizeWidget(self) rw2 = rw.ResizeWidget(self) self.rw2 = rw2 # This one we will reparent to the ResizeWidget... tst = wx.Panel(self) ...
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) rw1 = rw.ResizeWidget(self) rw2 = rw.ResizeWidget(self) self.rw2 = rw2 # This one we will reparent to the ResizeWidget... tst = wx.Panel(self) ...
self.Layout()
self.Layout()
1
509
9
518
#!/usr/bin/env python import wx import wx.lib.resizewidget as rw #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) rw1 = rw.ResizeWidget(self) rw2 ...
#!/usr/bin/env python import wx import wx.lib.resizewidget as rw #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) rw1 = rw.ResizeWidget(self) rw2 ...
41,666
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/RichMessageDialog.py
47,48
1,86
runTest
48,55
48,55
#!/usr/bin/env python import wx class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) self.bannish = False self.annoy = True b = wx.Button(self, -1, "Create and Show a wx.RichMessageDialog", (50, 50)) self....
#!/usr/bin/env python import wx class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) self.bannish = False self.annoy = True b = wx.Button(self, -1, "Create and Show a wx.RichMessageDialog", (50, 50)) self....
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
7
819
30
849
#!/usr/bin/env python import wx class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) self.bannish = False self.annoy = True b = wx.Button(self, -1, "Create and Show a wx.RichMessageDialog", (50, 50)) self....
#!/usr/bin/env python import wx class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) self.bannish = False self.annoy = True b = wx.Button(self, -1, "Create and Show a wx.RichMessageDialog", (50, 50)) self....
41,667
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/RichMessageDialog.py
17,18
6,47
OnButton
TestPanel
18,47
18,47
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) self.bannish = False self.annoy = True b = wx.Button(self, -1, "Create and Show a wx.RichMessageDialog", (50, 50)) self.Bind(wx.EVT_BUTTON, self.OnButton, ...
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) self.bannish = False self.annoy = True b = wx.Button(self, -1, "Create and Show a wx.RichMessageDialog", (50, 50)) self.Bind(wx.EVT_BUTTON, self.OnButton, ...
if self.bannish: print("That's rich!") return def DING(): """Add some audacity...erm annoyance""" wx.Bell() event.Skip() dlg = wx.RichMessageDialog(self, "Hey You! I'm a rich irritating dialog!") dlg.ShowDetailedText(("bla bla bla...
if self.bannish: print("That's rich!") return def DING(): """Add some audacity...erm annoyance""" wx.Bell() event.Skip() dlg = wx.RichMessageDialog(self, "Hey You! I'm a rich irritating dialog!") dlg.ShowDetailedText(("bla bla bla...
91
137
308
445
#!/usr/bin/env python import wx class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) self.bannish = False self.annoy = True b = wx.Button(self, -1, "Create and Show a wx.RichMessageDialog", (50, 50)) self....
#!/usr/bin/env python import wx class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) self.bannish = False self.annoy = True b = wx.Button(self, -1, "Create and Show a wx.RichMessageDialog", (50, 50)) self....
41,668
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ScrolledMessageDialog.py
29,30
1,54
runTest
30,37
30,37
#!/usr/bin/env python import wx import wx.lib.dialogs #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a Scr...
#!/usr/bin/env python import wx import wx.lib.dialogs #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a Scr...
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
7
392
30
422
#!/usr/bin/env python import wx import wx.lib.dialogs #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a Scr...
#!/usr/bin/env python import wx import wx.lib.dialogs #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a Scr...
41,669
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ScrolledMessageDialog.py
17,18
8,29
OnButton
TestPanel
18,29
18,29
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a ScrolledMessageDialog", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a ScrolledMessageDialog", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
with open("Main.py", "r") as f: msg = f.read() dlg = wx.lib.dialogs.ScrolledMessageDialog(self, msg, "message test") dlg.ShowModal() #---------------------------------------------------------------------------
with open("Main.py", "r") as f: msg = f.read() dlg = wx.lib.dialogs.ScrolledMessageDialog(self, msg, "message test") dlg.ShowModal() #---------------------------------------------------------------------------
16
119
77
196
#!/usr/bin/env python import wx import wx.lib.dialogs #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a Scr...
#!/usr/bin/env python import wx import wx.lib.dialogs #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a Scr...
41,670
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ScrolledPanel.py
105,106
1,125
runTest
106,113
106,113
#!/usr/bin/env python import wx import wx.lib.scrolledpanel as scrolled #---------------------------------------------------------------------- text = "one two buckle my shoe three four shut the door five six pick up sticks seven eight lay them straight nine ten big fat hen" class TestPanel(scrolled.ScrolledPanel)...
#!/usr/bin/env python import wx import wx.lib.scrolledpanel as scrolled #---------------------------------------------------------------------- text = "one two buckle my shoe three four shut the door five six pick up sticks seven eight lay them straight nine ten big fat hen" class TestPanel(scrolled.ScrolledPanel)...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
1,516
30
1,546
#!/usr/bin/env python import wx import wx.lib.scrolledpanel as scrolled #---------------------------------------------------------------------- text = "one two buckle my shoe three four shut the door five six pick up sticks seven eight lay them straight nine ten big fat hen" class TestPanel(scrolled.ScrolledPanel)...
#!/usr/bin/env python import wx import wx.lib.scrolledpanel as scrolled #---------------------------------------------------------------------- text = "one two buckle my shoe three four shut the door five six pick up sticks seven eight lay them straight nine ten big fat hen" class TestPanel(scrolled.ScrolledPanel)...
41,673
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SearchCtrl.py
95,96
1,116
runTest
96,103
96,103
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent) # Create controls sb = wx.StaticBox(self, -1, "Options") sear...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent) # Create controls sb = wx.StaticBox(self, -1, "Options") sear...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
1,155
30
1,185
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent) # Create controls sb = wx.StaticBox(self, -1, "Options") sear...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent) # Create controls sb = wx.StaticBox(self, -1, "Options") sear...
41,674
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SearchCtrl.py
80,81
7,95
MakeMenu
TestPanel
81,95
81,95
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent) # Create controls sb = wx.StaticBox(self, -1, "Options") searchBtnOpt = wx.CheckBox(self, -1, "Search button") searchBtnOpt.SetValue(True) cancelBtnOpt ...
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent) # Create controls sb = wx.StaticBox(self, -1, "Options") searchBtnOpt = wx.CheckBox(self, -1, "Search button") searchBtnOpt.SetValue(True) cancelBtnOpt ...
menu = wx.Menu() item = menu.Append(-1, "Recent Searches") item.Enable(False) for txt in [ "You can maintain", "a list of old", "search strings here", "and bind EVT_MENU to", "catch their selections" ]: ...
menu = wx.Menu() item = menu.Append(-1, "Recent Searches") item.Enable(False) for txt in [ "You can maintain", "a list of old", "search strings here", "and bind EVT_MENU to", "catch their selections" ]: ...
36
928
116
1,044
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent) # Create controls sb = wx.StaticBox(self, -1, "Options") sear...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent) # Create controls sb = wx.StaticBox(self, -1, "Options") sear...
41,675
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ShapedWindow.py
120,121
1,146
runTest
121,128
121,128
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- class TestFrame(wx.Frame): def __init__(self, parent, log): self.log = log wx.Frame.__init__(self, parent, -1, "Shaped Window", style = ...
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- class TestFrame(wx.Frame): def __init__(self, parent, log): self.log = log wx.Frame.__init__(self, parent, -1, "Shaped Window", style = ...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
1,359
30
1,389
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- class TestFrame(wx.Frame): def __init__(self, parent, log): self.log = log wx.Frame.__init__(self, parent, -1, "Shaped Window", style = ...
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- class TestFrame(wx.Frame): def __init__(self, parent, log): self.log = log wx.Frame.__init__(self, parent, -1, "Shaped Window", style = ...
41,676
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ShapedWindow.py
56,57
8,104
SetWindowShape
TestFrame
57,69
57,69
class TestFrame(wx.Frame): def __init__(self, parent, log): self.log = log wx.Frame.__init__(self, parent, -1, "Shaped Window", style = wx.FRAME_SHAPED | wx.SIMPLE_BORDER | wx.FRAME_NO_TASKBAR ...
class TestFrame(wx.Frame): def __init__(self, parent, log): self.log = log wx.Frame.__init__(self, parent, -1, "Shaped Window", style = wx.FRAME_SHAPED | wx.SIMPLE_BORDER | wx.FRAME_NO_TASKBAR ...
# Use the bitmap's mask to create a wx.Region r = wx.Region(self.bmp) # NOTE: Starting in 4.1 you can also get a wx.Region directly from # a wx.Image, so you can save a step if you don't need it as a wx.Bitmap # for anything else. #r = self.img.ConvertToRegion() ...
# Use the bitmap's mask to create a wx.Region r = wx.Region(self.bmp) # NOTE: Starting in 4.1 you can also get a wx.Region directly from # a wx.Image, so you can save a step if you don't need it as a wx.Bitmap # for anything else. #r = self.img.ConvertToRegion() ...
61
908
141
1,049
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- class TestFrame(wx.Frame): def __init__(self, parent, log): self.log = log wx.Frame.__init__(self, parent, -1, "Shaped Window", style = ...
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- class TestFrame(wx.Frame): def __init__(self, parent, log): self.log = log wx.Frame.__init__(self, parent, -1, "Shaped Window", style = ...
41,677
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ShapedWindow.py
113,114
104,120
OnButton
TestPanel
114,120
114,120
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Show the ShapedWindow sample", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Show the ShapedWindow sample", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
win = TestFrame(self, self.log) win.Show(True) #---------------------------------------------------------------------------
win = TestFrame(self, self.log) win.Show(True) #---------------------------------------------------------------------------
6
117
34
151
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- class TestFrame(wx.Frame): def __init__(self, parent, log): self.log = log wx.Frame.__init__(self, parent, -1, "Shaped Window", style = ...
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- class TestFrame(wx.Frame): def __init__(self, parent, log): self.log = log wx.Frame.__init__(self, parent, -1, "Shaped Window", style = ...
41,679
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Simplebook.py
80,81
45,168
MakeOptionsControls
TestSimplebook
81,122
81,122
class TestSimplebook(wx.Simplebook): def __init__(self, parent): wx.Simplebook.__init__(self, parent) self.showEffect = wx.SHOW_EFFECT_NONE self.hideEffect = wx.SHOW_EFFECT_NONE self.showTimeout = 0 self.hideTimeout = 0 self.DoSetEffects() page = TestPage(s...
class TestSimplebook(wx.Simplebook): def __init__(self, parent): wx.Simplebook.__init__(self, parent) self.showEffect = wx.SHOW_EFFECT_NONE self.hideEffect = wx.SHOW_EFFECT_NONE self.showTimeout = 0 self.hideTimeout = 0 self.DoSetEffects() page = TestPage(s...
fgs = wx.FlexGridSizer(cols=2, hgap=5, vgap=5) effects = [ 'wx.SHOW_EFFECT_NONE', 'wx.SHOW_EFFECT_ROLL_TO_LEFT', 'wx.SHOW_EFFECT_ROLL_TO_RIGHT', 'wx.SHOW_EFFECT_ROLL_TO_TOP ', 'wx.SHOW_EFFECT_ROLL_TO_BOTTOM', ...
fgs = wx.FlexGridSizer(cols=2, hgap=5, vgap=5) effects = [ 'wx.SHOW_EFFECT_NONE', 'wx.SHOW_EFFECT_ROLL_TO_LEFT', 'wx.SHOW_EFFECT_ROLL_TO_RIGHT', 'wx.SHOW_EFFECT_ROLL_TO_TOP ', 'wx.SHOW_EFFECT_ROLL_TO_BOTTOM', ...
79
802
697
1,499
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPage(wx.Panel): def __init__(self, parent, onNextPage, colour=None, title=None, text=None, extra=None): wx.Panel.__init__(self, parent) vbox = wx.BoxSizer(wx.VERTICAL) if co...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPage(wx.Panel): def __init__(self, parent, onNextPage, colour=None, title=None, text=None, extra=None): wx.Panel.__init__(self, parent) vbox = wx.BoxSizer(wx.VERTICAL) if co...
41,680
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SingleChoiceDialog.py
33,34
1,57
runTest
34,41
34,41
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a SingleChoiceDialog", (50,...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a SingleChoiceDialog", (50,...
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
7
415
30
445
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a SingleChoiceDialog", (50,...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a SingleChoiceDialog", (50,...
41,681
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SingleChoiceDialog.py
16,17
7,33
OnButton
TestPanel
17,33
17,33
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a SingleChoiceDialog", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a SingleChoiceDialog", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
dlg = wx.SingleChoiceDialog( self, 'Test Single Choice', 'The Caption', ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight'], wx.CHOICEDLG_STYLE ) if dlg.ShowModal() == wx.ID_OK: self.log.WriteText('You sele...
dlg = wx.SingleChoiceDialog( self, 'Test Single Choice', 'The Caption', ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight'], wx.CHOICEDLG_STYLE ) if dlg.ShowModal() == wx.ID_OK: self.log.WriteText('You sele...
31
119
151
270
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a SingleChoiceDialog", (50,...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a SingleChoiceDialog", (50,...
41,683
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SizedControls.py
285,286
245,292
ConfigureListCtrl
ErrorDialog
286,292
286,292
class ErrorDialog(sc.SizedDialog): def __init__(self, parent, id): sc.SizedDialog.__init__(self, parent, id, "Error log viewer", style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER) # Always use self.GetContentsPane() - this ensures that your dialog # automaticall...
class ErrorDialog(sc.SizedDialog): def __init__(self, parent, id): sc.SizedDialog.__init__(self, parent, id, "Error log viewer", style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER) # Always use self.GetContentsPane() - this ensures that your dialog # automaticall...
self.listCtrl.InsertColumn(0, "Time") self.listCtrl.InsertColumn(1, "Error Message") self.listCtrl.SetColumnWidth(0, 100) self.listCtrl.SetColumnWidth(1, 280)
self.listCtrl.InsertColumn(0, "Time") self.listCtrl.InsertColumn(1, "Error Message") self.listCtrl.SetColumnWidth(0, 100) self.listCtrl.SetColumnWidth(1, 280)
9
537
75
612
#!/usr/bin/env python import wx import wx.lib.sized_controls as sc overview = """\ <html><body><h2>Sized Controls</h2> SizedControls is an addon library that attempts to simplify the creation of sizer-based layouts. It adds the following classes: <h3>SizedPanel</h3> This class automatically creates its own sizer (a...
#!/usr/bin/env python import wx import wx.lib.sized_controls as sc overview = """\ <html><body><h2>Sized Controls</h2> SizedControls is an addon library that attempts to simplify the creation of sizer-based layouts. It adds the following classes: <h3>SizedPanel</h3> This class automatically creates its own sizer (a...
41,684
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SizedControls.py
365,366
339,424
OnFormButton
TestPanel
366,380
366,380
class TestPanel(sc.SizedScrolledPanel): def __init__(self, parent, log): self.log = log self.parent = parent sc.SizedScrolledPanel.__init__(self, parent, -1) b = wx.Button(self, -1, "Sized Controls Form Dialog") b.SetSizerProps({'halign': 'center', 'border': ('all', 15)}) ...
class TestPanel(sc.SizedScrolledPanel): def __init__(self, parent, log): self.log = log self.parent = parent sc.SizedScrolledPanel.__init__(self, parent, -1) b = wx.Button(self, -1, "Sized Controls Form Dialog") b.SetSizerProps({'halign': 'center', 'border': ('all', 15)}) ...
dlg = FormDialog(self, -1) dlg.CenterOnScreen() # this does not return until the dialog is closed. val = dlg.ShowModal() if val == wx.ID_OK: self.log.WriteText("You pressed OK\n") else: self.log.WriteText("You pressed Cancel\n") dlg.Des...
dlg = FormDialog(self, -1) dlg.CenterOnScreen() # this does not return until the dialog is closed. val = dlg.ShowModal() if val == wx.ID_OK: self.log.WriteText("You pressed OK\n") else: self.log.WriteText("You pressed Cancel\n") dlg.Des...
30
791
118
909
#!/usr/bin/env python import wx import wx.lib.sized_controls as sc overview = """\ <html><body><h2>Sized Controls</h2> SizedControls is an addon library that attempts to simplify the creation of sizer-based layouts. It adds the following classes: <h3>SizedPanel</h3> This class automatically creates its own sizer (a...
#!/usr/bin/env python import wx import wx.lib.sized_controls as sc overview = """\ <html><body><h2>Sized Controls</h2> SizedControls is an addon library that attempts to simplify the creation of sizer-based layouts. It adds the following classes: <h3>SizedPanel</h3> This class automatically creates its own sizer (a...
41,686
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Sizers.py
53,54
20,64
OnCloseParent
SampleWindow
54,58
54,58
class SampleWindow(wx.Window): """ A simple window that is used as sizer items in the tests below to show how the various sizers work. """ def __init__(self, parent, text, pos=wx.DefaultPosition, size=wx.DefaultSize): wx.Window.__init__(self, parent, -1, #style=wx....
class SampleWindow(wx.Window): """ A simple window that is used as sizer items in the tests below to show how the various sizers work. """ def __init__(self, parent, text, pos=wx.DefaultPosition, size=wx.DefaultSize): wx.Window.__init__(self, parent, -1, #style=wx....
p = wx.GetTopLevelParent(self) if p: p.Close()
p = wx.GetTopLevelParent(self) if p: p.Close()
6
405
29
434
#!/usr/bin/env python # 11/26/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Had to do a bit of rework for the demo; there was no panel attached # to the demo window, so all buttons were showing as dark gray on # dark gray. I have no idea why this didn't break before. Robin, # please examine my changes to ...
#!/usr/bin/env python # 11/26/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Had to do a bit of rework for the demo; there was no panel attached # to the demo window, so all buttons were showing as dark gray on # dark gray. I have no idea why this didn't break before. Robin, # please examine my changes to ...
41,687
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Sizers.py
543,544
528,550
OnCloseWindow
TestFrame
544,550
544,550
class TestFrame(wx.Frame): def __init__(self, parent, title, sizerFunc): wx.Frame.__init__(self, parent, -1, title) p = wx.Panel(self, -1) self.sizer = sizerFunc(p) self.CreateStatusBar() self.SetStatusText("Resize this frame to see how the sizers respond...") p.Se...
class TestFrame(wx.Frame): def __init__(self, parent, title, sizerFunc): wx.Frame.__init__(self, parent, -1, title) p = wx.Panel(self, -1) self.sizer = sizerFunc(p) self.CreateStatusBar() self.SetStatusText("Resize this frame to see how the sizers respond...") p.Se...
# self.MakeModal(False) self.Destroy() #----------------------------------------------------------------------
# self.MakeModal(False) self.Destroy() #----------------------------------------------------------------------
4
175
30
205
#!/usr/bin/env python # 11/26/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Had to do a bit of rework for the demo; there was no panel attached # to the demo window, so all buttons were showing as dark gray on # dark gray. I have no idea why this didn't break before. Robin, # please examine my changes to ...
#!/usr/bin/env python # 11/26/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Had to do a bit of rework for the demo; there was no panel attached # to the demo window, so all buttons were showing as dark gray on # dark gray. I have no idea why this didn't break before. Robin, # please examine my changes to ...
41,688
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Sizers.py
578,579
550,596
OnSelect
TestSelectionPanel
579,583
579,583
class TestSelectionPanel(wx.Panel): def __init__(self, parent): wx.Panel.__init__(self, parent) self.list = wx.ListBox(self, size=(300,150)) self.Bind(wx.EVT_LISTBOX, self.OnSelect, self.list) self.Bind(wx.EVT_LISTBOX_DCLICK, self.OnDClick, self.list) btn = wx.Button(self, ...
class TestSelectionPanel(wx.Panel): def __init__(self, parent): wx.Panel.__init__(self, parent) self.list = wx.ListBox(self, size=(300,150)) self.Bind(wx.EVT_LISTBOX, self.OnSelect, self.list) self.Bind(wx.EVT_LISTBOX_DCLICK, self.OnDClick, self.list) btn = wx.Button(self, ...
pos = self.list.GetSelection() self.text.SetValue(theTests[pos][2])
pos = self.list.GetSelection() self.text.SetValue(theTests[pos][2])
4
486
33
519
#!/usr/bin/env python # 11/26/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Had to do a bit of rework for the demo; there was no panel attached # to the demo window, so all buttons were showing as dark gray on # dark gray. I have no idea why this didn't break before. Robin, # please examine my changes to ...
#!/usr/bin/env python # 11/26/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Had to do a bit of rework for the demo; there was no panel attached # to the demo window, so all buttons were showing as dark gray on # dark gray. I have no idea why this didn't break before. Robin, # please examine my changes to ...
41,689
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Slider.py
33,34
1,53
runTest
34,42
34,42
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log self.count = 0 label = wx.StaticText(self, -1, "This is a wx.Slid...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log self.count = 0 label = wx.StaticText(self, -1, "This is a wx.Slid...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
394
32
426
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log self.count = 0 label = wx.StaticText(self, -1, "This is a wx.Slid...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log self.count = 0 label = wx.StaticText(self, -1, "This is a wx.Slid...
41,690
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SpinButton.py
40,41
1,64
runTest
41,47
41,47
#!/usr/bin/env python # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o EVT_SPIN events (or something about them) freezes up the app. import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init_...
#!/usr/bin/env python # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o EVT_SPIN events (or something about them) freezes up the app. import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init_...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
616
28
644
#!/usr/bin/env python # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o EVT_SPIN events (or something about them) freezes up the app. import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init_...
#!/usr/bin/env python # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o EVT_SPIN events (or something about them) freezes up the app. import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init_...
41,691
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SpinButton.py
34,35
12,40
OnSpin
TestPanel
35,40
35,40
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log self.count = 0 wx.StaticText(self, -1, "This example uses the wx.SpinButton control.", (45, 15)) self.text = wx.TextCtrl(self, -1, "1", (30, 50), (60, -1)) ...
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log self.count = 0 wx.StaticText(self, -1, "This example uses the wx.SpinButton control.", (45, 15)) self.text = wx.TextCtrl(self, -1, "1", (30, 50), (60, -1)) ...
self.text.SetValue(str(event.GetPosition())) #----------------------------------------------------------------------
self.text.SetValue(str(event.GetPosition())) #----------------------------------------------------------------------
2
273
28
301
#!/usr/bin/env python # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o EVT_SPIN events (or something about them) freezes up the app. import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init_...
#!/usr/bin/env python # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o EVT_SPIN events (or something about them) freezes up the app. import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init_...
41,692
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SpinCtrl.py
31,32
1,57
runTest
32,38
32,38
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log wx.StaticText(self, -1, "This example uses the wx.SpinCtrl control.", (4...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log wx.StaticText(self, -1, "This example uses the wx.SpinCtrl control.", (4...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
501
28
529
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log wx.StaticText(self, -1, "This example uses the wx.SpinCtrl control.", (4...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log wx.StaticText(self, -1, "This example uses the wx.SpinCtrl control.", (4...
41,693
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SpinCtrl.py
25,26
7,31
OnText
TestPanel
26,31
26,31
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log wx.StaticText(self, -1, "This example uses the wx.SpinCtrl control.", (45, 15)) sc = wx.SpinCtrl(self, -1, "", (30, 50)) sc.SetRange(1,100) sc.SetValue(5) ...
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log wx.StaticText(self, -1, "This example uses the wx.SpinCtrl control.", (45, 15)) sc = wx.SpinCtrl(self, -1, "", (30, 50)) sc.SetRange(1,100) sc.SetValue(5) ...
self.log.write('OnText: %d\n' % self.sc.GetValue()) #----------------------------------------------------------------------
self.log.write('OnText: %d\n' % self.sc.GetValue()) #----------------------------------------------------------------------
5
235
36
271
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log wx.StaticText(self, -1, "This example uses the wx.SpinCtrl control.", (4...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log wx.StaticText(self, -1, "This example uses the wx.SpinCtrl control.", (4...
41,694
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SpinCtrlDouble.py
19,20
1,43
runTest
20,27
20,27
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) wx.StaticText(self, -1, "wx.SpinCtrlDouble:", pos=(25,25)) spin =...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) wx.StaticText(self, -1, "wx.SpinCtrlDouble:", pos=(25,25)) spin =...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
311
30
341
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) wx.StaticText(self, -1, "wx.SpinCtrlDouble:", pos=(25,25)) spin =...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) wx.StaticText(self, -1, "wx.SpinCtrlDouble:", pos=(25,25)) spin =...
41,695
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SplitterWindow.py
28,29
1,63
runTest
29,52
29,52
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class MySplitter(wx.SplitterWindow): def __init__(self, parent, ID, log): wx.SplitterWindow.__init__(self, parent, ID, style = wx.SP_LIVE_UPDATE ...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class MySplitter(wx.SplitterWindow): def __init__(self, parent, ID, log): wx.SplitterWindow.__init__(self, parent, ID, style = wx.SP_LIVE_UPDATE ...
splitter = MySplitter(nb, -1, log) #sty = wx.BORDER_NONE #sty = wx.BORDER_SIMPLE sty = wx.BORDER_SUNKEN p1 = wx.Window(splitter, style=sty) p1.SetBackgroundColour("pink") wx.StaticText(p1, -1, "Panel One", (5,5)) p2 = wx.Window(splitter, style=sty) p2.SetBackgroundColour("sky blue...
splitter = MySplitter(nb, -1, log) #sty = wx.BORDER_NONE #sty = wx.BORDER_SIMPLE sty = wx.BORDER_SUNKEN p1 = wx.Window(splitter, style=sty) p1.SetBackgroundColour("pink") wx.StaticText(p1, -1, "Panel One", (5,5)) p2 = wx.Window(splitter, style=sty) p2.SetBackgroundColour("sky blue...
42
399
235
634
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class MySplitter(wx.SplitterWindow): def __init__(self, parent, ID, log): wx.SplitterWindow.__init__(self, parent, ID, style = wx.SP_LIVE_UPDATE ...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class MySplitter(wx.SplitterWindow): def __init__(self, parent, ID, log): wx.SplitterWindow.__init__(self, parent, ID, style = wx.SP_LIVE_UPDATE ...
41,696
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SplitterWindow.py
20,21
7,28
OnSashChanging
MySplitter
21,28
21,28
class MySplitter(wx.SplitterWindow): def __init__(self, parent, ID, log): wx.SplitterWindow.__init__(self, parent, ID, style = wx.SP_LIVE_UPDATE ) self.log = log self.Bind(wx.EVT_SPLITTER_SASH_POS_CHANGED, self.OnSashChan...
class MySplitter(wx.SplitterWindow): def __init__(self, parent, ID, log): wx.SplitterWindow.__init__(self, parent, ID, style = wx.SP_LIVE_UPDATE ) self.log = log self.Bind(wx.EVT_SPLITTER_SASH_POS_CHANGED, self.OnSashChan...
self.log.WriteText("sash changing to %s\n" % str(evt.GetSashPosition())) # uncomment this to not allow the change #evt.SetSashPosition(-1) #---------------------------------------------------------------------------
self.log.WriteText("sash changing to %s\n" % str(evt.GetSashPosition())) # uncomment this to not allow the change #evt.SetSashPosition(-1) #---------------------------------------------------------------------------
16
198
67
265
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class MySplitter(wx.SplitterWindow): def __init__(self, parent, ID, log): wx.SplitterWindow.__init__(self, parent, ID, style = wx.SP_LIVE_UPDATE ...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class MySplitter(wx.SplitterWindow): def __init__(self, parent, ID, log): wx.SplitterWindow.__init__(self, parent, ID, style = wx.SP_LIVE_UPDATE ...
41,697
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/StandardPaths.py
88,89
1,114
runTest
89,96
89,96
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) sizer = wx.FlexGridSizer(cols=3, hgap=5, vgap=5) sizer.AddGrowabl...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) sizer = wx.FlexGridSizer(cols=3, hgap=5, vgap=5) sizer.AddGrowabl...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
1,111
30
1,141
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) sizer = wx.FlexGridSizer(cols=3, hgap=5, vgap=5) sizer.AddGrowabl...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) sizer = wx.FlexGridSizer(cols=3, hgap=5, vgap=5) sizer.AddGrowabl...
41,698
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/StandardPaths.py
37,38
7,88
makeitem
TestPanel
38,49
38,49
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) sizer = wx.FlexGridSizer(cols=3, hgap=5, vgap=5) sizer.AddGrowableCol(1) box = wx.BoxSizer(wx.VERTICAL) fs = self.GetFont().GetPointSize() bf = wx.F...
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) sizer = wx.FlexGridSizer(cols=3, hgap=5, vgap=5) sizer.AddGrowableCol(1) box = wx.BoxSizer(wx.VERTICAL) fs = self.GetFont().GetPointSize() bf = wx.F...
func = getattr(sp, name) sizer.Add(wx.StaticText(self, -1, "%s%s:" %(name, repr(args))), 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL) sizer.Add(wx.TextCtrl(self, -1, func(*args), size=(275,-1), style=wx.TE_READONLY), ...
func = getattr(sp, name) sizer.Add(wx.StaticText(self, -1, "%s%s:" %(name, repr(args))), 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL) sizer.Add(wx.TextCtrl(self, -1, func(*args), size=(275,-1), style=wx.TE_READONLY), ...
26
759
185
944
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) sizer = wx.FlexGridSizer(cols=3, hgap=5, vgap=5) sizer.AddGrowabl...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) sizer = wx.FlexGridSizer(cols=3, hgap=5, vgap=5) sizer.AddGrowabl...
41,699
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/StaticBitmap.py
39,40
1,56
runTest
40,45
40,45
#!/usr/bin/env python import wx import images USE_GENERIC = 0 if USE_GENERIC: from wx.lib.stattext import GenStaticText as StaticText from wx.lib.statbmp import GenStaticBitmap as StaticBitmap else: StaticText = wx.StaticText StaticBitmap = wx.StaticBitmap #-------------------------------------...
#!/usr/bin/env python import wx import images USE_GENERIC = 0 if USE_GENERIC: from wx.lib.stattext import GenStaticText as StaticText from wx.lib.statbmp import GenStaticBitmap as StaticBitmap else: StaticText = wx.StaticText StaticBitmap = wx.StaticBitmap #-------------------------------------...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
431
26
457
#!/usr/bin/env python import wx import images USE_GENERIC = 0 if USE_GENERIC: from wx.lib.stattext import GenStaticText as StaticText from wx.lib.statbmp import GenStaticBitmap as StaticBitmap else: StaticText = wx.StaticText StaticBitmap = wx.StaticBitmap #-------------------------------------...
#!/usr/bin/env python import wx import images USE_GENERIC = 0 if USE_GENERIC: from wx.lib.stattext import GenStaticText as StaticText from wx.lib.statbmp import GenStaticBitmap as StaticBitmap else: StaticText = wx.StaticText StaticBitmap = wx.StaticBitmap #-------------------------------------...
41,700
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/StaticBox.py
40,41
1,63
runTest
41,48
41,48
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) box1 = wx.StaticBox(self, -1, "This is a wx.StaticBox") # This g...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) box1 = wx.StaticBox(self, -1, "This is a wx.StaticBox") # This g...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
657
30
687
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) box1 = wx.StaticBox(self, -1, "This is a wx.StaticBox") # This g...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) box1 = wx.StaticBox(self, -1, "This is a wx.StaticBox") # This g...
41,701
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/StaticText.py
51,52
1,70
runTest
52,59
52,59
#!/usr/bin/env python import wx USE_GENERIC = 0 if USE_GENERIC: from wx.lib.stattext import GenStaticText as StaticText else: StaticText = wx.StaticText #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent): wx.Pane...
#!/usr/bin/env python import wx USE_GENERIC = 0 if USE_GENERIC: from wx.lib.stattext import GenStaticText as StaticText else: StaticText = wx.StaticText #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent): wx.Pane...
panel = TestPanel(nb) return panel #---------------------------------------------------------------------------
panel = TestPanel(nb) return panel #---------------------------------------------------------------------------
6
636
28
664
#!/usr/bin/env python import wx USE_GENERIC = 0 if USE_GENERIC: from wx.lib.stattext import GenStaticText as StaticText else: StaticText = wx.StaticText #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent): wx.Pane...
#!/usr/bin/env python import wx USE_GENERIC = 0 if USE_GENERIC: from wx.lib.stattext import GenStaticText as StaticText else: StaticText = wx.StaticText #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent): wx.Pane...
41,702
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/StatusBar.py
119,120
1,145
runTest
120,127
120,127
#!/usr/bin/env python import time import wx RELATIVEWIDTHS = False #--------------------------------------------------------------------------- class CustomStatusBar(wx.StatusBar): def __init__(self, parent, log): wx.StatusBar.__init__(self, parent, -1) # This status bar has three fields ...
#!/usr/bin/env python import time import wx RELATIVEWIDTHS = False #--------------------------------------------------------------------------- class CustomStatusBar(wx.StatusBar): def __init__(self, parent, log): wx.StatusBar.__init__(self, parent, -1) # This status bar has three fields ...
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
7
1,304
30
1,334
#!/usr/bin/env python import time import wx RELATIVEWIDTHS = False #--------------------------------------------------------------------------- class CustomStatusBar(wx.StatusBar): def __init__(self, parent, log): wx.StatusBar.__init__(self, parent, -1) # This status bar has three fields ...
#!/usr/bin/env python import time import wx RELATIVEWIDTHS = False #--------------------------------------------------------------------------- class CustomStatusBar(wx.StatusBar): def __init__(self, parent, log): wx.StatusBar.__init__(self, parent, -1) # This status bar has three fields ...
41,703
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/StatusBar.py
61,62
10,85
OnSize
CustomStatusBar
62,71
62,71
class CustomStatusBar(wx.StatusBar): def __init__(self, parent, log): wx.StatusBar.__init__(self, parent, -1) # This status bar has three fields self.SetFieldsCount(3) if RELATIVEWIDTHS: # Sets the three fields to be relative widths to each other. self.SetSta...
class CustomStatusBar(wx.StatusBar): def __init__(self, parent, log): wx.StatusBar.__init__(self, parent, -1) # This status bar has three fields self.SetFieldsCount(3) if RELATIVEWIDTHS: # Sets the three fields to be relative widths to each other. self.SetSta...
evt.Skip() self.Reposition() # for normal size events # Set a flag so the idle time handler will also do the repositioning. # It is done this way to get around a buglet where GetFieldRect is not # accurate during the EVT_SIZE resulting from a frame maximize. self.sizeCh...
evt.Skip() self.Reposition() # for normal size events # Set a flag so the idle time handler will also do the repositioning. # It is done this way to get around a buglet where GetFieldRect is not # accurate during the EVT_SIZE resulting from a frame maximize. self.sizeCh...
49
667
96
763
#!/usr/bin/env python import time import wx RELATIVEWIDTHS = False #--------------------------------------------------------------------------- class CustomStatusBar(wx.StatusBar): def __init__(self, parent, log): wx.StatusBar.__init__(self, parent, -1) # This status bar has three fields ...
#!/usr/bin/env python import time import wx RELATIVEWIDTHS = False #--------------------------------------------------------------------------- class CustomStatusBar(wx.StatusBar): def __init__(self, parent, log): wx.StatusBar.__init__(self, parent, -1) # This status bar has three fields ...
41,704
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/StatusBar.py
96,97
85,103
OnCloseWindow
TestCustomStatusBar
97,103
97,103
class TestCustomStatusBar(wx.Frame): def __init__(self, parent, log): wx.Frame.__init__(self, parent, -1, 'Test Custom StatusBar') self.sb = CustomStatusBar(self, log) self.SetStatusBar(self.sb) tc = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY|wx.TE_MULTILINE) self.SetSi...
class TestCustomStatusBar(wx.Frame): def __init__(self, parent, log): wx.Frame.__init__(self, parent, -1, 'Test Custom StatusBar') self.sb = CustomStatusBar(self, log) self.SetStatusBar(self.sb) tc = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY|wx.TE_MULTILINE) self.SetSi...
self.sb.timer.Stop() del self.sb.timer self.Destroy() #---------------------------------------------------------------------------
self.sb.timer.Stop() del self.sb.timer self.Destroy() #---------------------------------------------------------------------------
5
166
37
203
#!/usr/bin/env python import time import wx RELATIVEWIDTHS = False #--------------------------------------------------------------------------- class CustomStatusBar(wx.StatusBar): def __init__(self, parent, log): wx.StatusBar.__init__(self, parent, -1) # This status bar has three fields ...
#!/usr/bin/env python import time import wx RELATIVEWIDTHS = False #--------------------------------------------------------------------------- class CustomStatusBar(wx.StatusBar): def __init__(self, parent, log): wx.StatusBar.__init__(self, parent, -1) # This status bar has three fields ...
41,705
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/StatusBar.py
112,113
103,119
OnButton
TestPanel
113,119
113,119
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Show the StatusBar sample", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Show the StatusBar sample", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
win = TestCustomStatusBar(self, self.log) win.Show(True) #---------------------------------------------------------------------------
win = TestCustomStatusBar(self, self.log) win.Show(True) #---------------------------------------------------------------------------
6
116
36
152
#!/usr/bin/env python import time import wx RELATIVEWIDTHS = False #--------------------------------------------------------------------------- class CustomStatusBar(wx.StatusBar): def __init__(self, parent, log): wx.StatusBar.__init__(self, parent, -1) # This status bar has three fields ...
#!/usr/bin/env python import time import wx RELATIVEWIDTHS = False #--------------------------------------------------------------------------- class CustomStatusBar(wx.StatusBar): def __init__(self, parent, log): wx.StatusBar.__init__(self, parent, -1) # This status bar has three fields ...
41,706
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/StockButtons.py
81,82
1,114
runTest
82,89
82,89
#!/usr/bin/env python import wx #---------------------------------------------------------------------- stockIDs = [ wx.ID_ABOUT, wx.ID_ADD, wx.ID_APPLY, wx.ID_BOLD, wx.ID_CANCEL, wx.ID_CLEAR, wx.ID_CLOSE, wx.ID_COPY, wx.ID_CUT, wx.ID_DELETE, wx.ID_EDIT, wx.ID_FIND, ...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- stockIDs = [ wx.ID_ABOUT, wx.ID_ADD, wx.ID_APPLY, wx.ID_BOLD, wx.ID_CANCEL, wx.ID_CLEAR, wx.ID_CLOSE, wx.ID_COPY, wx.ID_CUT, wx.ID_DELETE, wx.ID_EDIT, wx.ID_FIND, ...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
945
30
975
#!/usr/bin/env python import wx #---------------------------------------------------------------------- stockIDs = [ wx.ID_ABOUT, wx.ID_ADD, wx.ID_APPLY, wx.ID_BOLD, wx.ID_CANCEL, wx.ID_CLEAR, wx.ID_CLOSE, wx.ID_COPY, wx.ID_CUT, wx.ID_DELETE, wx.ID_EDIT, wx.ID_FIND, ...
#!/usr/bin/env python import wx #---------------------------------------------------------------------- stockIDs = [ wx.ID_ABOUT, wx.ID_ADD, wx.ID_APPLY, wx.ID_BOLD, wx.ID_CANCEL, wx.ID_CLEAR, wx.ID_CLOSE, wx.ID_COPY, wx.ID_CUT, wx.ID_DELETE, wx.ID_EDIT, wx.ID_FIND, ...
41,708
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SystemSettings.py
130,131
119,158
OnPaint
SysColorPanel
131,158
131,158
class SysColorPanel(SysPanelBase): def __init__(self, parent, log): SysPanelBase.__init__(self, parent, log) # Attributes: self._box = (50, 15) # Color box dimensions self._maxw = 0 self._vals = [ color for color in dir(wx) if color.startswith('SYS_COL...
class SysColorPanel(SysPanelBase): def __init__(self, parent, log): SysPanelBase.__init__(self, parent, log) # Attributes: self._box = (50, 15) # Color box dimensions self._maxw = 0 self._vals = [ color for color in dir(wx) if color.startswith('SYS_COL...
dc = wx.AutoBufferedPaintDCFactory(self) self.SetupPaintDC(dc) # Draw a sample box for each system color nextx = 10 nexty = 10 column = 0 row_count = 0 for val in self._vals: syscolor = wx.SystemSettings.GetColour(getattr(wx, val)) ...
dc = wx.AutoBufferedPaintDCFactory(self) self.SetupPaintDC(dc) # Draw a sample box for each system color nextx = 10 nexty = 10 column = 0 row_count = 0 for val in self._vals: syscolor = wx.SystemSettings.GetColour(getattr(wx, val)) ...
68
144
273
417
#!/usr/bin/env python ############################################################################### # Name: SystemSettingsDemo.py # # Purpose: SystemSettings Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
#!/usr/bin/env python ############################################################################### # Name: SystemSettingsDemo.py # # Purpose: SystemSettings Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
41,709
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SystemSettings.py
259,260
248,283
OnPaint
SysFeaturePanel
260,283
260,283
class SysFeaturePanel(SysPanelBase): def __init__(self, parent, log): SysPanelBase.__init__(self, parent, log) # Attributes: self._maxw = 0 self._vals = ['SYS_CAN_DRAW_FRAME_DECORATIONS', 'SYS_CAN_ICONIZE_FRAME', 'SYS_TABLET_PRESENT' ] ...
class SysFeaturePanel(SysPanelBase): def __init__(self, parent, log): SysPanelBase.__init__(self, parent, log) # Attributes: self._maxw = 0 self._vals = ['SYS_CAN_DRAW_FRAME_DECORATIONS', 'SYS_CAN_ICONIZE_FRAME', 'SYS_TABLET_PRESENT' ] ...
dc = wx.AutoBufferedPaintDCFactory(self) self.SetupPaintDC(dc) # Draw a sample box for each system color nextx = 10 nexty = 10 column = 0 row_count = 0 for val in self._vals: sysfeature = wx.SystemSettings.HasFeature(getattr(wx, val)) ...
dc = wx.AutoBufferedPaintDCFactory(self) self.SetupPaintDC(dc) # Draw a sample box for each system color nextx = 10 nexty = 10 column = 0 row_count = 0 for val in self._vals: sysfeature = wx.SystemSettings.HasFeature(getattr(wx, val)) ...
58
135
200
335
#!/usr/bin/env python ############################################################################### # Name: SystemSettingsDemo.py # # Purpose: SystemSettings Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
#!/usr/bin/env python ############################################################################### # Name: SystemSettingsDemo.py # # Purpose: SystemSettings Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
41,710
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SystemSettings.py
175,176
158,201
OnPaint
SysFontPanel
176,201
176,201
class SysFontPanel(SysPanelBase): def __init__(self, parent, log): SysPanelBase.__init__(self, parent, log) # Attributes: self._maxw = 0 self._vals = ['SYS_ANSI_FIXED_FONT', 'SYS_ANSI_VAR_FONT', 'SYS_DEFAULT_GUI_FONT', ...
class SysFontPanel(SysPanelBase): def __init__(self, parent, log): SysPanelBase.__init__(self, parent, log) # Attributes: self._maxw = 0 self._vals = ['SYS_ANSI_FIXED_FONT', 'SYS_ANSI_VAR_FONT', 'SYS_DEFAULT_GUI_FONT', ...
dc = wx.AutoBufferedPaintDCFactory(self) self.SetupPaintDC(dc) # Draw a sample box for each system color nextx = 10 nexty = 10 column = 0 row_count = 0 for val in self._vals: dc.SetFont(self.GetFont()) sysfont = wx.SystemSettings.G...
dc = wx.AutoBufferedPaintDCFactory(self) self.SetupPaintDC(dc) # Draw a sample box for each system color nextx = 10 nexty = 10 column = 0 row_count = 0 for val in self._vals: dc.SetFont(self.GetFont()) sysfont = wx.SystemSettings.G...
60
192
227
419
#!/usr/bin/env python ############################################################################### # Name: SystemSettingsDemo.py # # Purpose: SystemSettings Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
#!/usr/bin/env python ############################################################################### # Name: SystemSettingsDemo.py # # Purpose: SystemSettings Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
41,711
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SystemSettings.py
224,225
201,248
OnPaint
SysMetricPanel
225,248
225,248
class SysMetricPanel(SysPanelBase): def __init__(self, parent, log): SysPanelBase.__init__(self, parent, log) # Attributes: self._maxw = 0 self._vals = ['SYS_BORDER_X', 'SYS_BORDER_Y', 'SYS_CAPTION_Y', 'SYS_CURSOR_X', 'SYS_CURSOR_Y', 'SYS_DCLICK_X', ...
class SysMetricPanel(SysPanelBase): def __init__(self, parent, log): SysPanelBase.__init__(self, parent, log) # Attributes: self._maxw = 0 self._vals = ['SYS_BORDER_X', 'SYS_BORDER_Y', 'SYS_CAPTION_Y', 'SYS_CURSOR_X', 'SYS_CURSOR_Y', 'SYS_DCLICK_X', ...
dc = wx.AutoBufferedPaintDCFactory(self) self.SetupPaintDC(dc) # Draw a sample box for each system color nextx = 10 nexty = 10 column = 0 row_count = 0 for val in self._vals: sysmetric = wx.SystemSettings.GetMetric(getattr(wx, val)) ...
dc = wx.AutoBufferedPaintDCFactory(self) self.SetupPaintDC(dc) # Draw a sample box for each system color nextx = 10 nexty = 10 column = 0 row_count = 0 for val in self._vals: sysmetric = wx.SystemSettings.GetMetric(getattr(wx, val)) ...
58
523
201
724
#!/usr/bin/env python ############################################################################### # Name: SystemSettingsDemo.py # # Purpose: SystemSettings Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
#!/usr/bin/env python ############################################################################### # Name: SystemSettingsDemo.py # # Purpose: SystemSettings Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
41,712
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SystemSettings.py
76,77
61,119
DoGetBestSize
SysPanelBase
78,89
77,89
class SysPanelBase(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent)#, size=(500, 500)) # Attributes self.log = log self._vals = list() ## Event Handlers self.Bind(wx.EVT_PAINT, self.OnPaint) self.Bind(wx.EVT_ERASE_BACKGROUND, self....
class SysPanelBase(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent)#, size=(500, 500)) # Attributes self.log = log self._vals = list() ## Event Handlers self.Bind(wx.EVT_PAINT, self.OnPaint) self.Bind(wx.EVT_ERASE_BACKGROUND, self....
maxw = 0 for vals in self._vals: extent = self.GetTextExtent(vals)[0] if extent > maxw: maxw = extent self._maxw = maxw maxw += 75 maxh = (len(self._vals) + 1) * 22 return (maxw, maxh)
"""Return the best size for this panel""" maxw = 0 for vals in self._vals: extent = self.GetTextExtent(vals)[0] if extent > maxw: maxw = extent self._maxw = maxw maxw += 75 maxh = (len(self._vals) + 1) * 22 return (maxw, ma...
33
422
103
525
#!/usr/bin/env python ############################################################################### # Name: SystemSettingsDemo.py # # Purpose: SystemSettings Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
#!/usr/bin/env python ############################################################################### # Name: SystemSettingsDemo.py # # Purpose: SystemSettings Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
41,713
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SystemSettings.py
311,312
307,316
write
TestLog
312,316
312,316
class TestLog: def __init__(self): pass def write(self, msg): FILL_FUNC_BODY
class TestLog: def __init__(self): pass def write(self, msg): FILL_FUNC_BODY
print(msg) #----------------------------------------------------------------------
print(msg) #----------------------------------------------------------------------
2
36
16
52
#!/usr/bin/env python ############################################################################### # Name: SystemSettingsDemo.py # # Purpose: SystemSettings Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
#!/usr/bin/env python ############################################################################### # Name: SystemSettingsDemo.py # # Purpose: SystemSettings Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
41,714
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/SystemSettings.py
52,53
31,61
__DoLayout
TestPanel
54,61
53,61
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent) # Attributes self.log = log self._nb = wx.Notebook(self) # Setup panel1 = ScrolledWrapper(self._nb, SysColorPanel, self.log) self._nb.AddPage(panel1, "System Colors")...
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent) # Attributes self.log = log self._nb = wx.Notebook(self) # Setup panel1 = ScrolledWrapper(self._nb, SysColorPanel, self.log) self._nb.AddPage(panel1, "System Colors")...
sizer = wx.BoxSizer(wx.VERTICAL) sizer.Add(self._nb, 1, wx.EXPAND) self.SetSizer(sizer) self.SetAutoLayout(True) #----------------------------------------------------------------------
"""Layout the panel""" sizer = wx.BoxSizer(wx.VERTICAL) sizer.Add(self._nb, 1, wx.EXPAND) self.SetSizer(sizer) self.SetAutoLayout(True) #----------------------------------------------------------------------
9
261
71
332
#!/usr/bin/env python ############################################################################### # Name: SystemSettingsDemo.py # # Purpose: SystemSettings Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
#!/usr/bin/env python ############################################################################### # Name: SystemSettingsDemo.py # # Purpose: SystemSettings Test and Demo File # # Author: Cody Precord <cprecord@editra.org> ...
41,716
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/TablePrint.py
79,80
19,171
PreviewNarrow
TablePanel
80,110
80,110
class TablePanel(wx.Panel): def __init__(self, parent, log, frame): wx.Panel.__init__(self, parent, -1) self.log = log self.frame = frame box = wx.BoxSizer(wx.VERTICAL) box.Add((20, 30)) keys = sorted(buttonDefs) for k in keys: text = buttonDefs[...
class TablePanel(wx.Panel): def __init__(self, parent, log, frame): wx.Panel.__init__(self, parent, -1) self.log = log self.frame = frame box = wx.BoxSizer(wx.VERTICAL) box.Add((20, 30)) keys = sorted(buttonDefs) for k in keys: text = buttonDefs[...
self.ReadData() new_data = [] for val in self.data: new_data.append([val[0], val[1], val[2], val[4], val[5]]) val = self.header new_header = [val[0], val[1], val[2], val[4], val[5]] prt = printout.PrintTable(self.frame) prt.data = new_data pr...
self.ReadData() new_data = [] for val in self.data: new_data.append([val[0], val[1], val[2], val[4], val[5]]) val = self.header new_header = [val[0], val[1], val[2], val[4], val[5]] prt = printout.PrintTable(self.frame) prt.data = new_data pr...
96
1,207
479
1,686
#!/usr/bin/env python import os import wx import wx.lib.printout as printout #--------------------------------------------------------------------------- buttonDefs = { 814 : ('PreviewWide', 'Preview print of a wide table'), 815 : ('PreviewNarrow', 'Preview print of a narrow table with color highlights')...
#!/usr/bin/env python import os import wx import wx.lib.printout as printout #--------------------------------------------------------------------------- buttonDefs = { 814 : ('PreviewWide', 'Preview print of a wide table'), 815 : ('PreviewNarrow', 'Preview print of a narrow table with color highlights')...
41,719
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/TextEntryDialog.py
34,35
1,58
runTest
35,42
35,42
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a TextEntryDialog", (50,50...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a TextEntryDialog", (50,50...
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
win = TestPanel(nb, log) return win #---------------------------------------------------------------------------
7
422
30
452
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a TextEntryDialog", (50,50...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a TextEntryDialog", (50,50...
41,720
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/TextEntryDialog.py
16,17
7,34
OnButton
TestPanel
17,34
17,34
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a TextEntryDialog", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a TextEntryDialog", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
dlg = wx.TextEntryDialog( self, 'What is your favorite programming language?', 'Eh??', 'Python') dlg.SetValue("Python is the best!") if dlg.ShowModal() == wx.ID_OK: self.log.WriteText('You entered: %s\n' % dlg.GetValue()) dlg.Destroy() #...
dlg = wx.TextEntryDialog( self, 'What is your favorite programming language?', 'Eh??', 'Python') dlg.SetValue("Python is the best!") if dlg.ShowModal() == wx.ID_OK: self.log.WriteText('You entered: %s\n' % dlg.GetValue()) dlg.Destroy() #...
27
118
126
244
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a TextEntryDialog", (50,50...
#!/usr/bin/env python import wx #--------------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Create and Show a TextEntryDialog", (50,50...
41,722
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Threads.py
32,33
16,56
Run
CalcBarThread
33,56
33,56
class CalcBarThread: def __init__(self, win, barNum, val): self.win = win self.barNum = barNum self.val = val def Start(self): self.keepGoing = self.running = True _thread.start_new_thread(self.Run, ()) def Stop(self): self.keepGoing = False def IsRunni...
class CalcBarThread: def __init__(self, win, barNum, val): self.win = win self.barNum = barNum self.val = val def Start(self): self.keepGoing = self.running = True _thread.start_new_thread(self.Run, ()) def Stop(self): self.keepGoing = False def IsRunni...
while self.keepGoing: # We communicate with the UI by sending events to it. There can be # no manipulation of UI objects from the worker thread. evt = UpdateBarEvent(barNum = self.barNum, value = int(self.val)) wx.PostEvent(self.win, evt) sleeptime = ...
while self.keepGoing: # We communicate with the UI by sending events to it. There can be # no manipulation of UI objects from the worker thread. evt = UpdateBarEvent(barNum = self.barNum, value = int(self.val)) wx.PostEvent(self.win, evt) sleeptime = ...
82
133
244
377
import random import time from six.moves import _thread import wx import wx.lib.newevent #---------------------------------------------------------------------- # This creates a new Event class and a EVT binder function (UpdateBarEvent, EVT_UPDATE_BARGRAPH) = wx.lib.newevent.NewEvent() #---------------------------...
import random import time from six.moves import _thread import wx import wx.lib.newevent #---------------------------------------------------------------------- # This creates a new Event class and a EVT binder function (UpdateBarEvent, EVT_UPDATE_BARGRAPH) = wx.lib.newevent.NewEvent() #---------------------------...
41,723
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Threads.py
91,92
56,130
GetBestHeight
GraphWindow
92,95
92,95
class GraphWindow(wx.Window): def __init__(self, parent, labels): wx.Window.__init__(self, parent, -1) self.values = [] for label in labels: self.values.append((label, 0)) font = wx.Font(12, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD) self.SetF...
class GraphWindow(wx.Window): def __init__(self, parent, labels): wx.Window.__init__(self, parent, -1) self.values = [] for label in labels: self.values.append((label, 0)) font = wx.Font(12, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD) self.SetF...
return 2 * (self.barHeight + 1) * len(self.values)
return 2 * (self.barHeight + 1) * len(self.values)
8
748
26
774
import random import time from six.moves import _thread import wx import wx.lib.newevent #---------------------------------------------------------------------- # This creates a new Event class and a EVT binder function (UpdateBarEvent, EVT_UPDATE_BARGRAPH) = wx.lib.newevent.NewEvent() #---------------------------...
import random import time from six.moves import _thread import wx import wx.lib.newevent #---------------------------------------------------------------------- # This creates a new Event class and a EVT binder function (UpdateBarEvent, EVT_UPDATE_BARGRAPH) = wx.lib.newevent.NewEvent() #---------------------------...
41,724
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Threads.py
180,181
130,203
OnCloseWindow
TestFrame
181,203
181,203
class TestFrame(wx.Frame): def __init__(self, parent, log): wx.Frame.__init__(self, parent, -1, "Thread Test", size=(450,300)) self.log = log #self.CenterOnParent() panel = wx.Panel(self, -1) panel.SetFont(wx.Font(10, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_...
class TestFrame(wx.Frame): def __init__(self, parent, log): wx.Frame.__init__(self, parent, -1, "Thread Test", size=(450,300)) self.log = log #self.CenterOnParent() panel = wx.Panel(self, -1) panel.SetFont(wx.Font(10, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_...
busy = wx.BusyInfo("One moment please, waiting for threads to die...") wx.Yield() for t in self.threads: t.Stop() running = 1 while running: running = 0 for t in self.threads: running = running + t.IsRunning() t...
busy = wx.BusyInfo("One moment please, waiting for threads to die...") wx.Yield() for t in self.threads: t.Stop() running = 1 while running: running = 0 for t in self.threads: running = running + t.IsRunning() t...
36
663
133
796
import random import time from six.moves import _thread import wx import wx.lib.newevent #---------------------------------------------------------------------- # This creates a new Event class and a EVT binder function (UpdateBarEvent, EVT_UPDATE_BARGRAPH) = wx.lib.newevent.NewEvent() #---------------------------...
import random import time from six.moves import _thread import wx import wx.lib.newevent #---------------------------------------------------------------------- # This creates a new Event class and a EVT binder function (UpdateBarEvent, EVT_UPDATE_BARGRAPH) = wx.lib.newevent.NewEvent() #---------------------------...
41,725
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Threads.py
217,218
203,224
ShutdownDemo
TestPanel
218,224
218,224
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Show Threads sample", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): self.win = TestFrame(self, self.lo...
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Show Threads sample", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): self.win = TestFrame(self, self.lo...
if hasattr(self, 'win') and self.win: self.win.Close() #---------------------------------------------------------------------------
if hasattr(self, 'win') and self.win: self.win.Close() #---------------------------------------------------------------------------
7
152
37
189
import random import time from six.moves import _thread import wx import wx.lib.newevent #---------------------------------------------------------------------- # This creates a new Event class and a EVT binder function (UpdateBarEvent, EVT_UPDATE_BARGRAPH) = wx.lib.newevent.NewEvent() #---------------------------...
import random import time from six.moves import _thread import wx import wx.lib.newevent #---------------------------------------------------------------------- # This creates a new Event class and a EVT binder function (UpdateBarEvent, EVT_UPDATE_BARGRAPH) = wx.lib.newevent.NewEvent() #---------------------------...
41,728
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Ticker.py
131,132
1,148
runTest
132,139
132,139
#!/usr/bin/env python import wx from wx.lib.ticker import Ticker import wx.lib.colourselect as csel #for easy color selection #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self,...
#!/usr/bin/env python import wx from wx.lib.ticker import Ticker import wx.lib.colourselect as csel #for easy color selection #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self,...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
1,912
30
1,942
#!/usr/bin/env python import wx from wx.lib.ticker import Ticker import wx.lib.colourselect as csel #for easy color selection #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self,...
#!/usr/bin/env python import wx from wx.lib.ticker import Ticker import wx.lib.colourselect as csel #for easy color selection #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self,...
41,729
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Ticker.py
103,104
9,131
OnChangeTickDirection
TestPanel
104,109
104,109
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) self.ticker = Ticker(self) # Controls for ...controlling... the ticker. self.txt = wx.TextCtrl(self, value="I am a scrolling ticker!!!!", size=(200,-1)) wx...
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) self.ticker = Ticker(self) # Controls for ...controlling... the ticker. self.txt = wx.TextCtrl(self, value="I am a scrolling ticker!!!!", size=(200,-1)) wx...
if self.ticker.GetDirection() == "rtl": self.SetTickDirection("ltr") else: self.SetTickDirection("rtl")
if self.ticker.GetDirection() == "rtl": self.SetTickDirection("ltr") else: self.SetTickDirection("rtl")
7
1,742
48
1,790
#!/usr/bin/env python import wx from wx.lib.ticker import Ticker import wx.lib.colourselect as csel #for easy color selection #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self,...
#!/usr/bin/env python import wx from wx.lib.ticker import Ticker import wx.lib.colourselect as csel #for easy color selection #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self,...
41,731
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/Timer.py
239,240
234,246
Notify
NotifyTimer
240,246
240,246
class NotifyTimer(wx.Timer): def __init__(self, log): wx.Timer.__init__(self) self.log = log def Notify(self): FILL_FUNC_BODY
class NotifyTimer(wx.Timer): def __init__(self, log): wx.Timer.__init__(self) self.log = log def Notify(self): FILL_FUNC_BODY
self.log.write("got NotifyTimer event\n") #----------------------------------------------------------------------
self.log.write("got NotifyTimer event\n") #----------------------------------------------------------------------
4
56
30
86
#!/usr/bin/env python import time import wx import wx.lib.scrolledpanel as sp #---------------------------------------------------------------------- header = """\ This demo shows the various ways that wx.Timers can be used in your code. Just select one of the buttons in the left column to start a timer in the ...
#!/usr/bin/env python import time import wx import wx.lib.scrolledpanel as sp #---------------------------------------------------------------------- header = """\ This demo shows the various ways that wx.Timers can be used in your code. Just select one of the buttons in the left column to start a timer in the ...
41,733
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ToggleButton.py
35,36
1,55
runTest
36,43
36,43
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log panel = wx.Panel(self, -1) buttons = wx.BoxSizer(wx...
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log panel = wx.Panel(self, -1) buttons = wx.BoxSizer(wx...
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
win = TestPanel(nb, log) return win #----------------------------------------------------------------------
7
478
30
508
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log panel = wx.Panel(self, -1) buttons = wx.BoxSizer(wx...
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log panel = wx.Panel(self, -1) buttons = wx.BoxSizer(wx...
41,734
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ToggleButton.py
30,31
8,35
OnToggle
TestPanel
31,35
31,35
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log panel = wx.Panel(self, -1) buttons = wx.BoxSizer(wx.HORIZONTAL) for word in "These are toggle buttons".split(): b = wx.ToggleButton(panel, -1, word) ...
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log panel = wx.Panel(self, -1) buttons = wx.BoxSizer(wx.HORIZONTAL) for word in "These are toggle buttons".split(): b = wx.ToggleButton(panel, -1, word) ...
self.log.write("Button %d toggled\n" % evt.GetId()) #----------------------------------------------------------------------
self.log.write("Button %d toggled\n" % evt.GetId()) #----------------------------------------------------------------------
6
313
33
346
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log panel = wx.Panel(self, -1) buttons = wx.BoxSizer(wx...
#!/usr/bin/env python import wx import images #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.log = log panel = wx.Panel(self, -1) buttons = wx.BoxSizer(wx...
41,736
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ToolBar.py
199,200
190,208
OnButton
TestPanel
200,208
200,208
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Show the ToolBar sample", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) b = wx.Button(self, -1, "Show the ToolBar sample", (50,50)) self.Bind(wx.EVT_BUTTON, self.OnButton, b) def OnButton(self, evt): FILL_FUNC_BODY
win = TestToolBar(self, self.log) win.Show(True) self.frame = win #---------------------------------------------------------------------------
win = TestToolBar(self, self.log) win.Show(True) self.frame = win #---------------------------------------------------------------------------
9
116
45
161
#!/usr/bin/env python import wx import images FRAMETB = True TBFLAGS = ( wx.TB_HORIZONTAL | wx.NO_BORDER | wx.TB_FLAT #| wx.TB_TEXT #| wx.TB_HORZ_LAYOUT ) #--------------------------------------------------------------------------- class TestSearchCtrl(w...
#!/usr/bin/env python import wx import images FRAMETB = True TBFLAGS = ( wx.TB_HORIZONTAL | wx.NO_BORDER | wx.TB_FLAT #| wx.TB_TEXT #| wx.TB_HORZ_LAYOUT ) #--------------------------------------------------------------------------- class TestSearchCtrl(w...
41,737
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ToolBar.py
43,44
16,52
MakeMenu
TestSearchCtrl
44,52
44,52
class TestSearchCtrl(wx.SearchCtrl): maxSearches = 5 def __init__(self, parent, id=-1, value="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, doSearch=None): style |= wx.TE_PROCESS_ENTER wx.SearchCtrl.__init__(self, parent, id, value, pos, size, style)...
class TestSearchCtrl(wx.SearchCtrl): maxSearches = 5 def __init__(self, parent, id=-1, value="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, doSearch=None): style |= wx.TE_PROCESS_ENTER wx.SearchCtrl.__init__(self, parent, id, value, pos, size, style)...
menu = wx.Menu() item = menu.Append(-1, "Recent Searches") item.Enable(False) for idx, txt in enumerate(self.searches): menu.Append(1+idx, txt) return menu
menu = wx.Menu() item = menu.Append(-1, "Recent Searches") item.Enable(False) for idx, txt in enumerate(self.searches): menu.Append(1+idx, txt) return menu
18
359
73
432
#!/usr/bin/env python import wx import images FRAMETB = True TBFLAGS = ( wx.TB_HORIZONTAL | wx.NO_BORDER | wx.TB_FLAT #| wx.TB_TEXT #| wx.TB_HORZ_LAYOUT ) #--------------------------------------------------------------------------- class TestSearchCtrl(w...
#!/usr/bin/env python import wx import images FRAMETB = True TBFLAGS = ( wx.TB_HORIZONTAL | wx.NO_BORDER | wx.TB_FLAT #| wx.TB_TEXT #| wx.TB_HORZ_LAYOUT ) #--------------------------------------------------------------------------- class TestSearchCtrl(w...
41,738
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix
/home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/demo/ToolBar.py
177,178
52,190
OnClearSB
TestToolBar
178,182
178,182
class TestToolBar(wx.Frame): def __init__(self, parent, log): wx.Frame.__init__(self, parent, -1, 'Test ToolBar', size=(600, 400)) self.log = log self.timer = None self.Bind(wx.EVT_CLOSE, self.OnCloseWindow) client = wx.Panel(self) client.SetBackgroundColour(wx.WHITE...
class TestToolBar(wx.Frame): def __init__(self, parent, log): wx.Frame.__init__(self, parent, -1, 'Test ToolBar', size=(600, 400)) self.log = log self.timer = None self.Bind(wx.EVT_CLOSE, self.OnCloseWindow) client = wx.Panel(self) client.SetBackgroundColour(wx.WHITE...
self.SetStatusText("") self.timer.Stop() self.timer = None
self.SetStatusText("") self.timer.Stop() self.timer = None
5
1,925
29
1,954
#!/usr/bin/env python import wx import images FRAMETB = True TBFLAGS = ( wx.TB_HORIZONTAL | wx.NO_BORDER | wx.TB_FLAT #| wx.TB_TEXT #| wx.TB_HORZ_LAYOUT ) #--------------------------------------------------------------------------- class TestSearchCtrl(w...
#!/usr/bin/env python import wx import images FRAMETB = True TBFLAGS = ( wx.TB_HORIZONTAL | wx.NO_BORDER | wx.TB_FLAT #| wx.TB_TEXT #| wx.TB_HORZ_LAYOUT ) #--------------------------------------------------------------------------- class TestSearchCtrl(w...