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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
42,224 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/piectrl.py | 426,427 | 390,463 | SetColour | PiePart | 432,436 | 427,436 | class PiePart(object):
"""
This class handles the legend segments properties, such as value,
colour and label.
"""
def __init__(self, value=0, colour=wx.BLACK, label=""):
"""
Default class constructor.
:param `value`: the pie part value;
:param `colour`: the pie par... | class PiePart(object):
"""
This class handles the legend segments properties, such as value,
colour and label.
"""
def __init__(self, value=0, colour=wx.BLACK, label=""):
"""
Default class constructor.
:param `value`: the pie part value;
:param `colour`: the pie par... |
self._colour = colour
| """
Sets the segment colour.
:param `colour`: a valid :class:`wx.Colour` object.
"""
self._colour = colour
| 3 | 416 | 15 | 431 | # --------------------------------------------------------------------------- #
# PIECTRL Control wxPython IMPLEMENTATION
# Python Code By:
#
# Andrea Gavana, @ 31 Oct 2005
# Latest Revision: 16 Jul 2012, 15.00 GMT
#
#
# TODO List/Caveats
#
# 1. Maybe Integrate The Very Nice PyOpenGL Implementation Of A PieChart Coded
... | # --------------------------------------------------------------------------- #
# PIECTRL Control wxPython IMPLEMENTATION
# Python Code By:
#
# Andrea Gavana, @ 31 Oct 2005
# Latest Revision: 16 Jul 2012, 15.00 GMT
#
#
# TODO List/Caveats
#
# 1. Maybe Integrate The Very Nice PyOpenGL Implementation Of A PieChart Coded
... |
42,225 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/piectrl.py | 963,964 | 904,1020 | SetMaxValue | ProgressPie | 969,977 | 964,977 | class ProgressPie(PieCtrl):
"""
:class:`ProgressPie` tries to emulate the behavior of :class:`ProgressDialog`, but
using a pie chart instead of a gauge.
"""
def __init__(self, parent, maxvalue, value, id=wx.ID_ANY,
pos=wx.DefaultPosition, size=wx.DefaultSize, style=0):
"""
... | class ProgressPie(PieCtrl):
"""
:class:`ProgressPie` tries to emulate the behavior of :class:`ProgressDialog`, but
using a pie chart instead of a gauge.
"""
def __init__(self, parent, maxvalue, value, id=wx.ID_ANY,
pos=wx.DefaultPosition, size=wx.DefaultSize, style=0):
"""
... |
self._maxvalue = value
self._value = min(self._value, self._maxvalue)
self._series[0].SetValue(max(self._value, 0.0))
self._series[1].SetValue(max(self._maxvalue-self._value, 0.0))
self.Refresh()
| """
Sets the :class:`ProgressPie` maximum value.
:param `value`: a floating point number representing the maximum value.
"""
self._maxvalue = value
self._value = min(self._value, self._maxvalue)
self._series[0].SetValue(max(self._value, 0.0))
self._serie... | 12 | 992 | 92 | 1,084 | # --------------------------------------------------------------------------- #
# PIECTRL Control wxPython IMPLEMENTATION
# Python Code By:
#
# Andrea Gavana, @ 31 Oct 2005
# Latest Revision: 16 Jul 2012, 15.00 GMT
#
#
# TODO List/Caveats
#
# 1. Maybe Integrate The Very Nice PyOpenGL Implementation Of A PieChart Coded
... | # --------------------------------------------------------------------------- #
# PIECTRL Control wxPython IMPLEMENTATION
# Python Code By:
#
# Andrea Gavana, @ 31 Oct 2005
# Latest Revision: 16 Jul 2012, 15.00 GMT
#
#
# TODO List/Caveats
#
# 1. Maybe Integrate The Very Nice PyOpenGL Implementation Of A PieChart Coded
... |
42,226 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/pybusyinfo.py | 377,378 | 365,392 | OnButton | MyFrame | 378,392 | 378,392 | class MyFrame(wx.Frame):
def __init__(self, parent):
wx.Frame.__init__(self, parent, -1, "PyBusyInfo Demo")
panel = wx.Panel(self)
b = wx.Button(panel, -1, "Test PyBusyInfo ", (50,50))
self.Bind(wx.EVT_BUTTON, self.OnButton, b)
def OnButton(self,... | class MyFrame(wx.Frame):
def __init__(self, parent):
wx.Frame.__init__(self, parent, -1, "PyBusyInfo Demo")
panel = wx.Panel(self)
b = wx.Button(panel, -1, "Test PyBusyInfo ", (50,50))
self.Bind(wx.EVT_BUTTON, self.OnButton, b)
def OnButton(self,... |
message = "Please wait 5 seconds, working..."
busy = PyBusyInfo(message, parent=self, title="Really Busy")
wx.Yield()
for indx in range(5):
wx.MilliSleep(1000)
del busy
# our normal wxApp-derived class, as usual
|
message = "Please wait 5 seconds, working..."
busy = PyBusyInfo(message, parent=self, title="Really Busy")
wx.Yield()
for indx in range(5):
wx.MilliSleep(1000)
del busy
# our normal wxApp-derived class, as usual
| 28 | 128 | 106 | 234 | # --------------------------------------------------------------------------- #
# PYBUSYINFO Control wxPython IMPLEMENTATION
# Inspired By And Heavily Based On wxBusyInfo.
#
# Python Code By:
#
# Andrea Gavana, @ 10 December 2009
# Latest Revision: 27 Dec 2012, 21.00 GMT
#
#
# TODO List/Caveats
#
# 1. ?
#
#
# For All K... | # --------------------------------------------------------------------------- #
# PYBUSYINFO Control wxPython IMPLEMENTATION
# Inspired By And Heavily Based On wxBusyInfo.
#
# Python Code By:
#
# Andrea Gavana, @ 10 December 2009
# Latest Revision: 27 Dec 2012, 21.00 GMT
#
#
# TODO List/Caveats
#
# 1. ?
#
#
# For All K... |
42,227 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/pybusyinfo.py | 314,315 | 279,361 | Show | PyBusyInfo | 335,345 | 315,345 | class PyBusyInfo(object):
"""
Constructs a busy info window as child of parent and displays a message in it.
"""
def __init__(self, message, parent=None, title=_("Busy"), icon=wx.NullBitmap):
"""
Default class constructor.
:param `parent`: the :class:`PyBusyInfo` parent;
... | class PyBusyInfo(object):
"""
Constructs a busy info window as child of parent and displays a message in it.
"""
def __init__(self, message, parent=None, title=_("Busy"), icon=wx.NullBitmap):
"""
Default class constructor.
:param `parent`: the :class:`PyBusyInfo` parent;
... |
retVal = self._infoFrame.Show(show)
if show:
self._infoFrame.Refresh()
self._infoFrame.Update()
return retVal
| """
Shows or hides the window.
You may need to call `Raise` for a top level window if you want to bring it to
top, although this is not needed if :meth:`PyBusyInfo.Show` is called immediately after the frame creation.
:param bool `show`: ``True`` to show the :class:`PyBusyInfo`... | 9 | 739 | 58 | 797 | # --------------------------------------------------------------------------- #
# PYBUSYINFO Control wxPython IMPLEMENTATION
# Inspired By And Heavily Based On wxBusyInfo.
#
# Python Code By:
#
# Andrea Gavana, @ 10 December 2009
# Latest Revision: 27 Dec 2012, 21.00 GMT
#
#
# TODO List/Caveats
#
# 1. ?
#
#
# For All K... | # --------------------------------------------------------------------------- #
# PYBUSYINFO Control wxPython IMPLEMENTATION
# Inspired By And Heavily Based On wxBusyInfo.
#
# Python Code By:
#
# Andrea Gavana, @ 10 December 2009
# Latest Revision: 27 Dec 2012, 21.00 GMT
#
#
# TODO List/Caveats
#
# 1. ?
#
#
# For All K... |
42,228 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/pybusyinfo.py | 262,263 | 140,279 | OnErase | PyInfoFrame | 270,279 | 263,279 | class PyInfoFrame(wx.Frame):
""" Base class for :class:`PyBusyInfo`. """
def __init__(self, parent, message, title, icon):
"""
Default class constructor.
:param `parent`: the frame parent;
:param `message`: the message to display in the :class:`PyBusyInfo`;
:param `titl... | class PyInfoFrame(wx.Frame):
""" Base class for :class:`PyBusyInfo`. """
def __init__(self, parent, message, title, icon):
"""
Default class constructor.
:param `parent`: the frame parent;
:param `message`: the message to display in the :class:`PyBusyInfo`;
:param `titl... |
# This is empty on purpose, to avoid flickering
pass
# -------------------------------------------------------------------- #
# The actual PyBusyInfo implementation
# -------------------------------------------------------------------- #
| """
Handles the ``wx.EVT_ERASE_BACKGROUND`` event for :class:`PyInfoFrame`.
:param `event`: a :class:`EraseEvent` event to be processed.
:note: This method is intentionally empty to reduce flicker.
"""
# This is empty on purpose, to avoid flickering
pass
# --... | 21 | 1,546 | 49 | 1,595 | # --------------------------------------------------------------------------- #
# PYBUSYINFO Control wxPython IMPLEMENTATION
# Inspired By And Heavily Based On wxBusyInfo.
#
# Python Code By:
#
# Andrea Gavana, @ 10 December 2009
# Latest Revision: 27 Dec 2012, 21.00 GMT
#
#
# TODO List/Caveats
#
# 1. ?
#
#
# For All K... | # --------------------------------------------------------------------------- #
# PYBUSYINFO Control wxPython IMPLEMENTATION
# Inspired By And Heavily Based On wxBusyInfo.
#
# Python Code By:
#
# Andrea Gavana, @ 10 December 2009
# Latest Revision: 27 Dec 2012, 21.00 GMT
#
#
# TODO List/Caveats
#
# 1. ?
#
#
# For All K... |
42,229 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/pycollapsiblepane.py | 231,232 | 201,313 | OnDrawGTKExpander | GTKExpander | 237,261 | 232,261 | class GTKExpander(wx.Control):
"""
A :class:`GTKExpander` allows the user to hide or show its child by clicking on an expander
triangle.
"""
def __init__(self, parent, id=wx.ID_ANY, label="", pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.NO_BORDER):
"""
Defa... | class GTKExpander(wx.Control):
"""
A :class:`GTKExpander` allows the user to hide or show its child by clicking on an expander
triangle.
"""
def __init__(self, parent, id=wx.ID_ANY, label="", pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.NO_BORDER):
"""
Defa... |
size = self.GetSize()
label = self._parent.GetBtnLabel()
triangleWidth, triangleHeight = self._parent.GetExpanderDimensions()
textWidth, textHeight, descent, externalLeading = dc.GetFullTextExtent(label, self.GetFont())
dc.SetBrush(wx.BLACK_BRUSH)
dc.SetPen(wx.BLACK_PEN... | """
Draws the :class:`GTKExpander` triangle.
:param `dc`: an instance of :class:`wx.DC`.
"""
size = self.GetSize()
label = self._parent.GetBtnLabel()
triangleWidth, triangleHeight = self._parent.GetExpanderDimensions()
textWidth, textHeight, descent, ext... | 83 | 904 | 346 | 1,250 | # --------------------------------------------------------------------------------- #
# PYCOLLAPSIBLEPANE wxPython IMPLEMENTATION
# Generic Implementation Based On wx.CollapsiblePane.
#
# Andrea Gavana, @ 09 Aug 2007
# Latest Revision: 19 Dec 2012, 21.00 GMT
#
#
# For All Kind Of Problems, Requests Of Enhancements And ... | # --------------------------------------------------------------------------------- #
# PYCOLLAPSIBLEPANE wxPython IMPLEMENTATION
# Generic Implementation Based On wx.CollapsiblePane.
#
# Andrea Gavana, @ 09 Aug 2007
# Latest Revision: 19 Dec 2012, 21.00 GMT
#
#
# For All Kind Of Problems, Requests Of Enhancements And ... |
42,230 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/pycollapsiblepane.py | 892,893 | 868,934 | MakePaneContent | MyFrame | 894,934 | 893,934 | class MyFrame(wx.Frame):
def __init__(self, parent):
wx.Frame.__init__(self, parent, -1, "PyCollapsiblePane Demo")
panel = wx.Panel(self)
title = wx.StaticText(panel, label="PyCollapsiblePane")
title.SetFont(wx.Font(18, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NO... | class MyFrame(wx.Frame):
def __init__(self, parent):
wx.Frame.__init__(self, parent, -1, "PyCollapsiblePane Demo")
panel = wx.Panel(self)
title = wx.StaticText(panel, label="PyCollapsiblePane")
title.SetFont(wx.Font(18, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NO... |
nameLbl = wx.StaticText(pane, -1, "Name:")
name = wx.TextCtrl(pane, -1, "");
addrLbl = wx.StaticText(pane, -1, "Address:")
addr1 = wx.TextCtrl(pane, -1, "");
addr2 = wx.TextCtrl(pane, -1, "");
cstLbl = wx.StaticText(pane, -1, "City, State, Zip:"... | ''' Just makes a few controls to put on `PyCollapsiblePane`. '''
nameLbl = wx.StaticText(pane, -1, "Name:")
name = wx.TextCtrl(pane, -1, "");
addrLbl = wx.StaticText(pane, -1, "Address:")
addr1 = wx.TextCtrl(pane, -1, "");
addr2 = wx.TextCtrl(pan... | 104 | 330 | 631 | 961 | # --------------------------------------------------------------------------------- #
# PYCOLLAPSIBLEPANE wxPython IMPLEMENTATION
# Generic Implementation Based On wx.CollapsiblePane.
#
# Andrea Gavana, @ 09 Aug 2007
# Latest Revision: 19 Dec 2012, 21.00 GMT
#
#
# For All Kind Of Problems, Requests Of Enhancements And ... | # --------------------------------------------------------------------------------- #
# PYCOLLAPSIBLEPANE wxPython IMPLEMENTATION
# Generic Implementation Based On wx.CollapsiblePane.
#
# Andrea Gavana, @ 09 Aug 2007
# Latest Revision: 19 Dec 2012, 21.00 GMT
#
#
# For All Kind Of Problems, Requests Of Enhancements And ... |
42,234 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/ribbon/art_internal.py | 133,134 | 86,229 | ToRGB | RibbonHSLColour | 134,198 | 134,198 | class RibbonHSLColour(object):
def __init__(self, h=0.0, s=0.0, l=0.0):
if isinstance(h, wx.Colour):
red, green, blue = h.Red()/255.0, h.Green()/255.0, h.Blue()/255.0
Min = min(red, min(green, blue))
Max = max(red, max(green, blue))
luminance = 0.5 * (Max +... | class RibbonHSLColour(object):
def __init__(self, h=0.0, s=0.0, l=0.0):
if isinstance(h, wx.Colour):
red, green, blue = h.Red()/255.0, h.Green()/255.0, h.Blue()/255.0
Min = min(red, min(green, blue))
Max = max(red, max(green, blue))
luminance = 0.5 * (Max +... |
_hue = (self.hue - math.floor(self.hue / 360.0) * 360.0)
_saturation = self.saturation
_luminance = self.luminance
if _saturation > 1.0:
_saturation = 1.0
if _saturation < 0.0:
_saturation = 0.0
if _luminance > 1.0:
_luminance = 1.0
... |
_hue = (self.hue - math.floor(self.hue / 360.0) * 360.0)
_saturation = self.saturation
_luminance = self.luminance
if _saturation > 1.0:
_saturation = 1.0
if _saturation < 0.0:
_saturation = 0.0
if _luminance > 1.0:
_luminance = 1.0
... | 255 | 638 | 817 | 1,455 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: art_internal.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented,... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: art_internal.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented,... |
42,237 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/ribbon/bar.py | 199,200 | 146,220 | Veto | RibbonBarEvent | 207,211 | 200,211 | class RibbonBarEvent(wx.NotifyEvent):
"""
Event used to indicate various actions relating to a :class:`RibbonBar`.
.. seealso:: :class:`RibbonBar` for available event types.
"""
def __init__(self, command_type=None, win_id=0, page=None):
"""
Default class constructor.
:par... | class RibbonBarEvent(wx.NotifyEvent):
"""
Event used to indicate various actions relating to a :class:`RibbonBar`.
.. seealso:: :class:`RibbonBar` for available event types.
"""
def __init__(self, command_type=None, win_id=0, page=None):
"""
Default class constructor.
:par... |
self._isAllowed = False
| """
Prevents the change announced by this event from happening.
:note: It is in general a good idea to notify the user about the reasons
for vetoing the change because otherwise the applications behaviour (which
just refuses to do what the user wants) might be quite surprising... | 3 | 603 | 16 | 619 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: bar.py
# Licence: wxWindows license
#
# Tags: phoenix-port, unittest, documented, py3-port
#
# RIBBONBAR Library wxPython IMPLEMENTATION
#
# Original C++ Code From Peter Cawley.
#
# Current... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: bar.py
# Licence: wxWindows license
#
# Tags: phoenix-port, unittest, documented, py3-port
#
# RIBBONBAR Library wxPython IMPLEMENTATION
#
# Original C++ Code From Peter Cawley.
#
# Current... |
42,239 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/ribbon/buttonbar.py | 97,98 | 80,130 | NewInstance | RibbonButtonBarButtonBase | 98,104 | 98,104 | class RibbonButtonBarButtonBase(object):
def __init__(self):
self.label = ""
self.help_string = ""
self.bitmap_large = wx.NullBitmap
self.bitmap_large_disabled = wx.NullBitmap
self.bitmap_small = wx.NullBitmap
self.bitmap_small_disabled = wx.NullBitmap
self.... | class RibbonButtonBarButtonBase(object):
def __init__(self):
self.label = ""
self.help_string = ""
self.bitmap_large = wx.NullBitmap
self.bitmap_large_disabled = wx.NullBitmap
self.bitmap_small = wx.NullBitmap
self.bitmap_small_disabled = wx.NullBitmap
self.... |
i = RibbonButtonBarButtonInstance()
i.base = self
return i
|
i = RibbonButtonBarButtonInstance()
i.base = self
return i
| 8 | 506 | 31 | 537 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: buttonbar.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: buttonbar.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py... |
42,240 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/ribbon/buttonbar.py | 206,207 | 165,216 | PopupMenu | RibbonButtonBarEvent | 212,216 | 207,216 | class RibbonButtonBarEvent(wx.PyCommandEvent):
"""
Event used to indicate various actions relating to a button on a :class:`RibbonButtonBar`.
.. seealso:: :class:`RibbonButtonBar` for available event types.
"""
def __init__(self, command_type=None, win_id=0, bar=None):
"""
Default ... | class RibbonButtonBarEvent(wx.PyCommandEvent):
"""
Event used to indicate various actions relating to a button on a :class:`RibbonButtonBar`.
.. seealso:: :class:`RibbonButtonBar` for available event types.
"""
def __init__(self, command_type=None, win_id=0, bar=None):
"""
Default ... |
return self._bar.PopupMenu(menu)
| """
Display a popup menu as a result of this (dropdown clicked) event.
:param `menu`: an instance of :class:`wx.Menu`.
"""
return self._bar.PopupMenu(menu)
| 2 | 372 | 20 | 392 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: buttonbar.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: buttonbar.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py... |
42,241 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/ribbon/buttonbar.py | 153,154 | 130,165 | FindSimilarInstance | RibbonButtonBarLayout | 154,165 | 154,165 | class RibbonButtonBarLayout(object):
def __init__(self):
self.overall_size = wx.Size()
self.buttons = []
def CalculateOverallSize(self):
self.overall_size = wx.Size(0, 0)
for instance in self.buttons:
size = instance.base.sizes[instance.size].size
ri... | class RibbonButtonBarLayout(object):
def __init__(self):
self.overall_size = wx.Size()
self.buttons = []
def CalculateOverallSize(self):
self.overall_size = wx.Size(0, 0)
for instance in self.buttons:
size = instance.base.sizes[instance.size].size
ri... |
if inst is None:
return None
for instance in self.buttons:
if instance.base == inst.base:
return instance
return None
|
if inst is None:
return None
for instance in self.buttons:
if instance.base == inst.base:
return instance
return None
| 18 | 212 | 56 | 268 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: buttonbar.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: buttonbar.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py... |
42,242 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/ribbon/control.py | 106,107 | 38,206 | DoGetNextSmallerSize | RibbonControl | 116,128 | 107,128 | class RibbonControl(wx.Control):
""" Base class for all the Ribbon stuff. """
def __init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0,
validator=wx.DefaultValidator, name="RibbonControl"):
"""
Default class constructor.
:param wx.W... | class RibbonControl(wx.Control):
""" Base class for all the Ribbon stuff. """
def __init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0,
validator=wx.DefaultValidator, name="RibbonControl"):
"""
Default class constructor.
:param wx.W... |
# Dummy implementation for code which doesn't check for IsSizingContinuous() == true
minimum = self.GetMinSize()
if direction & wx.HORIZONTAL and size.x > minimum.x:
size.x -= 1
if direction & wx.VERTICAL and size.y > minimum.y:
size.y -= 1
return size
... | """
Implementation of :meth:`~RibbonControl.GetNextSmallerSize`.
Controls which have non-continuous sizing must override this virtual function
rather than :meth:`~RibbonControl.GetNextSmallerSize`.
:param integer `direction`: the direction(s) in which the size should increase;
... | 39 | 1,576 | 110 | 1,686 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: control.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py3-... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: control.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py3-... |
42,244 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/ribbon/gallery.py | 78,79 | 60,110 | GetGallery | RibbonGalleryEvent | 80,84 | 79,84 | class RibbonGalleryEvent(wx.PyCommandEvent):
""" Handles events related to :class:`RibbonGallery`. """
def __init__(self, command_type=None, win_id=0, gallery=None, item=None):
"""
Default class constructor.
:param integer `command_type`: the event type;
:param integer `win_id`... | class RibbonGalleryEvent(wx.PyCommandEvent):
""" Handles events related to :class:`RibbonGallery`. """
def __init__(self, command_type=None, win_id=0, gallery=None, item=None):
"""
Default class constructor.
:param integer `command_type`: the event type;
:param integer `win_id`... |
return self._gallery
| """ Returns the gallery which the event relates to. """
return self._gallery
| 2 | 403 | 14 | 417 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: gallery.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py3-... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: gallery.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py3-... |
42,245 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/ribbon/gallery.py | 125,126 | 110,165 | SetBitmap | RibbonGalleryItem | 126,130 | 126,130 | class RibbonGalleryItem(object):
def __init__(self):
self._id = 0
self._is_visible = False
self._client_data = None
self._position = wx.Rect()
def SetId(self, id):
self._id = id
def SetBitmap(self, bitmap):
FILL_FUNC_BODY def GetBitmap(self):
return... | class RibbonGalleryItem(object):
def __init__(self):
self._id = 0
self._is_visible = False
self._client_data = None
self._position = wx.Rect()
def SetId(self, id):
self._id = id
def SetBitmap(self, bitmap):
FILL_FUNC_BODY def GetBitmap(self):
return... |
self._bitmap = bitmap
|
self._bitmap = bitmap
| 3 | 258 | 16 | 274 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: gallery.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py3-... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: gallery.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py3-... |
42,248 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/ribbon/page.py | 108,109 | 57,122 | OnMouseUp | RibbonPageScrollButton | 109,122 | 109,122 | class RibbonPageScrollButton(RibbonControl):
def __init__(self, sibling, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0):
RibbonControl.__init__(self, sibling.GetParent(), id, pos, size, style=wx.BORDER_NONE)
self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
self._sibling = ... | class RibbonPageScrollButton(RibbonControl):
def __init__(self, sibling, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0):
RibbonControl.__init__(self, sibling.GetParent(), id, pos, size, style=wx.BORDER_NONE)
self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
self._sibling = ... |
if self._flags & RIBBON_SCROLL_BTN_ACTIVE:
self._flags &= ~RIBBON_SCROLL_BTN_ACTIVE
self.Refresh(False)
result = self._flags & RIBBON_SCROLL_BTN_DIRECTION_MASK
if result in [RIBBON_SCROLL_BTN_DOWN, RIBBON_SCROLL_BTN_RIGHT]:
self._sibling.ScrollL... |
if self._flags & RIBBON_SCROLL_BTN_ACTIVE:
self._flags &= ~RIBBON_SCROLL_BTN_ACTIVE
self.Refresh(False)
result = self._flags & RIBBON_SCROLL_BTN_DIRECTION_MASK
if result in [RIBBON_SCROLL_BTN_DOWN, RIBBON_SCROLL_BTN_RIGHT]:
self._sibling.ScrollL... | 25 | 584 | 196 | 780 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: page.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py3-por... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: page.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py3-por... |
42,251 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/ribbon/panel.py | 107,108 | 84,117 | SetPanel | RibbonPanelEvent | 113,117 | 108,117 | class RibbonPanelEvent(wx.PyCommandEvent):
""" Handles events related to :class:`RibbonPanel`. """
def __init__(self, command_type=None, win_id=0, panel=None):
"""
Default class constructor.
:param integer `command_type`: the event type;
:param integer `win_id`: the event ident... | class RibbonPanelEvent(wx.PyCommandEvent):
""" Handles events related to :class:`RibbonPanel`. """
def __init__(self, command_type=None, win_id=0, panel=None):
"""
Default class constructor.
:param integer `command_type`: the event type;
:param integer `win_id`: the event ident... |
self._panel = panel
| """
Sets the panel relating to this event.
:param `panel`: an instance of :class:`RibbonPanel`.
"""
self._panel = panel
| 3 | 240 | 14 | 254 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: panel.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py3-po... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: panel.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py3-po... |
42,254 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/ribbon/toolbar.py | 99,100 | 67,116 | PopupMenu | RibbonToolBarEvent | 112,116 | 100,116 | class RibbonToolBarEvent(wx.PyCommandEvent):
""" Handles events related to :class:`RibbonToolBar`. """
def __init__(self, command_type=None, win_id=0, bar=None):
"""
Default class constructor.
:param integer `command_type`: the event type;
:param integer `win_id`: the event ide... | class RibbonToolBarEvent(wx.PyCommandEvent):
""" Handles events related to :class:`RibbonToolBar`. """
def __init__(self, command_type=None, win_id=0, bar=None):
"""
Default class constructor.
:param integer `command_type`: the event type;
:param integer `win_id`: the event ide... |
return self._bar.PopupMenu(menu)
| """
Pops up the given menu and returns control when the user has dismissed the menu.
If a menu item is selected, the corresponding menu event is generated and will
be processed as usual.
:param `menu`: the menu to pop up, an instance of :class:`wx.Menu`.
:note: Just be... | 2 | 411 | 20 | 431 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: toolbar.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py3-... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: toolbar.py
# Purpose:
#
# Author: Andrea Gavana <andrea.gavana@gmail.com>
#
# Created:
# Version:
# Date:
# Licence: wxWindows license
# Tags: phoenix-port, unittest, documented, py3-... |
42,256 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/shapedbutton.py | 1100,1101 | 991,1139 | DrawLabel | SBitmapButton | 1110,1139 | 1101,1139 | class SBitmapButton(SButton):
"""
Subclass of :class:`SButton` which displays a bitmap, acting like a
:class:`wx.BitmapButton`.
"""
def __init__(self, parent, id, bitmap, pos=wx.DefaultPosition, size=wx.DefaultSize):
"""
Default class constructor.
:param `parent`: the :clas... | class SBitmapButton(SButton):
"""
Subclass of :class:`SButton` which displays a bitmap, acting like a
:class:`wx.BitmapButton`.
"""
def __init__(self, parent, id, bitmap, pos=wx.DefaultPosition, size=wx.DefaultSize):
"""
Default class constructor.
:param `parent`: the :clas... |
bmp = self._bmplabel
if self._bmpdisabled and not self.IsEnabled():
bmp = self._bmpdisabled
if self._bmpfocus and self._hasfocus:
bmp = self._bmpfocus
if self._bmpselected and not self._isup:
bmp = self._bmpselected
bw, bh = bmp.GetWidth()... | """
Draws the bitmap in the middle of the button.
:param `dc`: an instance of :class:`wx.DC`;
:param `width`: the button width;
:param `height`: the button height;
:param `dw`: width differential, to show a 3D effect;
:param `dh`: height differential, to show a 3... | 109 | 1,061 | 303 | 1,364 | # --------------------------------------------------------------------------- #
# SHAPEDBUTTON Control wxPython IMPLEMENTATION
# Python Code By:
#
# Andrea Gavana, @ 18 Oct 2005
# Latest Revision: 16 Jul 2012, 15.00 GMT
#
#
# TODO List/Caveats
#
# 1. Elliptic Buttons May Be Handled Better, In My Opinion. They Look Nice... | # --------------------------------------------------------------------------- #
# SHAPEDBUTTON Control wxPython IMPLEMENTATION
# Python Code By:
#
# Andrea Gavana, @ 18 Oct 2005
# Latest Revision: 16 Jul 2012, 15.00 GMT
#
#
# TODO List/Caveats
#
# 1. Elliptic Buttons May Be Handled Better, In My Opinion. They Look Nice... |
42,257 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/shapedbutton.py | 1183,1184 | 1139,1259 | DrawLabel | SBitmapTextButton | 1193,1259 | 1184,1259 | class SBitmapTextButton(SBitmapButton):
"""
Subclass of :class:`SButton` which displays a bitmap and a label.
"""
def __init__(self, parent, id, bitmap, label,
pos=wx.DefaultPosition, size=wx.DefaultSize):
"""
Default class constructor.
:param `parent`: the :cl... | class SBitmapTextButton(SBitmapButton):
"""
Subclass of :class:`SButton` which displays a bitmap and a label.
"""
def __init__(self, parent, id, bitmap, label,
pos=wx.DefaultPosition, size=wx.DefaultSize):
"""
Default class constructor.
:param `parent`: the :cl... |
bmp = self._bmplabel
if bmp is not None: # if the bitmap is used
if self._bmpdisabled and not self.IsEnabled():
bmp = self._bmpdisabled
if self._bmpfocus and self._hasfocus:
bmp = self._bmpfocus
if self._bmpselected and not sel... | """
Draws the bitmap and the text label.
:param `dc`: an instance of :class:`wx.DC`;
:param `width`: the button width;
:param `height`: the button height;
:param `dw`: width differential, to show a 3D effect;
:param `dh`: height differential, to show a 3D effect.... | 216 | 579 | 750 | 1,329 | # --------------------------------------------------------------------------- #
# SHAPEDBUTTON Control wxPython IMPLEMENTATION
# Python Code By:
#
# Andrea Gavana, @ 18 Oct 2005
# Latest Revision: 16 Jul 2012, 15.00 GMT
#
#
# TODO List/Caveats
#
# 1. Elliptic Buttons May Be Handled Better, In My Opinion. They Look Nice... | # --------------------------------------------------------------------------- #
# SHAPEDBUTTON Control wxPython IMPLEMENTATION
# Python Code By:
#
# Andrea Gavana, @ 18 Oct 2005
# Latest Revision: 16 Jul 2012, 15.00 GMT
#
#
# TODO List/Caveats
#
# 1. Elliptic Buttons May Be Handled Better, In My Opinion. They Look Nice... |
42,259 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/shapedbutton.py | 258,259 | 216,271 | GetButtonObj | SButtonEvent | 260,271 | 259,271 | class SButtonEvent(wx.CommandEvent):
""" Event sent from the generic buttons when the button is activated. """
def __init__(self, eventType, eventId):
"""
Default class constructor.
:param `eventType`: the event type;
:param `eventId`: the event identifier.
"""
... | class SButtonEvent(wx.CommandEvent):
""" Event sent from the generic buttons when the button is activated. """
def __init__(self, eventType, eventId):
"""
Default class constructor.
:param `eventType`: the event type;
:param `eventId`: the event identifier.
"""
... |
return self.theButton
#----------------------------------------------------------------------
# SBUTTON Class
# This Is The Main Class Implementation. See __init__() Method For
# Details. All The Other Button Types Depend On This Class For Event
# Handling And Property Settings.
#----------------------------... | """ Returns the object associated with this event. """
return self.theButton
#----------------------------------------------------------------------
# SBUTTON Class
# This Is The Main Class Implementation. See __init__() Method For
# Details. All The Other Button Types Depend On This Class For Event
... | 36 | 299 | 79 | 378 | # --------------------------------------------------------------------------- #
# SHAPEDBUTTON Control wxPython IMPLEMENTATION
# Python Code By:
#
# Andrea Gavana, @ 18 Oct 2005
# Latest Revision: 16 Jul 2012, 15.00 GMT
#
#
# TODO List/Caveats
#
# 1. Elliptic Buttons May Be Handled Better, In My Opinion. They Look Nice... | # --------------------------------------------------------------------------- #
# SHAPEDBUTTON Control wxPython IMPLEMENTATION
# Python Code By:
#
# Andrea Gavana, @ 18 Oct 2005
# Latest Revision: 16 Jul 2012, 15.00 GMT
#
#
# TODO List/Caveats
#
# 1. Elliptic Buttons May Be Handled Better, In My Opinion. They Look Nice... |
42,260 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/shapedbutton.py | 1340,1341 | 1259,1388 | OnMotion | __SToggleMixin | 1346,1368 | 1341,1368 | class __SToggleMixin(object):
"""
A mixin that allows to transform any of :class:`SButton`, :class:`SBitmapButton` and
:class:`SBitmapTextButton` in the corresponding toggle buttons.
"""
def SetToggle(self, flag):
"""
Sets the button as toggled/not toggled.
:param `flag`: `... | class __SToggleMixin(object):
"""
A mixin that allows to transform any of :class:`SButton`, :class:`SBitmapButton` and
:class:`SBitmapTextButton` in the corresponding toggle buttons.
"""
def SetToggle(self, flag):
"""
Sets the button as toggled/not toggled.
:param `flag`: `... |
if not self.IsEnabled():
return
if event.LeftIsDown() and self.HasCapture():
x, y = event.GetPosition()
w, h = self.GetClientSize()
if not self.IsOutside(x, y):
self._isup = not self._saveup
self.Refresh()
... | """
Handles the ``wx.EVT_MOTION`` event for the button.
:param `event`: a :class:`MouseEvent` event to be processed.
"""
if not self.IsEnabled():
return
if event.LeftIsDown() and self.HasCapture():
x, y = event.GetPosition()
w, h = ... | 34 | 760 | 157 | 917 | # --------------------------------------------------------------------------- #
# SHAPEDBUTTON Control wxPython IMPLEMENTATION
# Python Code By:
#
# Andrea Gavana, @ 18 Oct 2005
# Latest Revision: 16 Jul 2012, 15.00 GMT
#
#
# TODO List/Caveats
#
# 1. Elliptic Buttons May Be Handled Better, In My Opinion. They Look Nice... | # --------------------------------------------------------------------------- #
# SHAPEDBUTTON Control wxPython IMPLEMENTATION
# Python Code By:
#
# Andrea Gavana, @ 18 Oct 2005
# Latest Revision: 16 Jul 2012, 15.00 GMT
#
#
# TODO List/Caveats
#
# 1. Elliptic Buttons May Be Handled Better, In My Opinion. They Look Nice... |
42,264 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/zoombar.py | 643,644 | 577,683 | SetBarColour | ImageBar | 651,677 | 644,677 | class ImageBar(object):
""" This class holds the background button bar on which the buttons float. """
def __init__(self, bitmap=None):
"""
Default class constructor.
:param `bitmap`: if not ``None``, the bitmap to use as a background button
bar on which the buttons float. It ... | class ImageBar(object):
""" This class holds the background button bar on which the buttons float. """
def __init__(self, bitmap=None):
"""
Default class constructor.
:param `bitmap`: if not ``None``, the bitmap to use as a background button
bar on which the buttons float. It ... |
if not isinstance(colour, wx.Colour):
colour = wx.Colour(colour)
if self._hasBitmap:
bitmap = self._hasBitmap
else:
bitmap = zoombackgrey.GetImage()
if xSize is not None:
self._size = wx.Size(xSize, ySize)
bitmap.Rescale(self._s... | """
Sets the background button bar colour.
:param `colour`: an instance of :class:`wx.Colour`;
:param `xSize`: if not ``None``, the new :class:`wx.ImageBar` width;
:param `ySize`: if not ``None``, the new :class:`wx.ImageBar` height.
"""
if not isinstance(colour... | 80 | 756 | 331 | 1,087 | # --------------------------------------------------------------------------------- #
# ZoomBar wxPython IMPLEMENTATION
#
# Andrea Gavana @ 19 Dec 2012, 21.00 GMT
#
#
# For all kind of problems, requests of enhancements and bug reports, please write
# to me at:
#
# andrea.gavana@gmail.com
# andrea.gavana@maerskoil.com
... | # --------------------------------------------------------------------------------- #
# ZoomBar wxPython IMPLEMENTATION
#
# Andrea Gavana @ 19 Dec 2012, 21.00 GMT
#
#
# For all kind of problems, requests of enhancements and bug reports, please write
# to me at:
#
# andrea.gavana@gmail.com
# andrea.gavana@maerskoil.com
... |
42,266 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/zoombar.py | 714,715 | 683,730 | GetLabel | ZoomBarEvent | 716,720 | 715,720 | class ZoomBarEvent(wx.PyCommandEvent):
""" Event sent from the :class:`ZoomBar` when a button is activated. """
def __init__(self, eventType, eventId=1):
"""
Default class constructor.
:param `eventType`: the event type;
:param `eventId`: the event identifier.
"""
... | class ZoomBarEvent(wx.PyCommandEvent):
""" Event sent from the :class:`ZoomBar` when a button is activated. """
def __init__(self, eventType, eventId=1):
"""
Default class constructor.
:param `eventType`: the event type;
:param `eventId`: the event identifier.
"""
... |
return self._label
| """ Returns the text label of the selected button. """
return self._label
| 2 | 288 | 13 | 301 | # --------------------------------------------------------------------------------- #
# ZoomBar wxPython IMPLEMENTATION
#
# Andrea Gavana @ 19 Dec 2012, 21.00 GMT
#
#
# For all kind of problems, requests of enhancements and bug reports, please write
# to me at:
#
# andrea.gavana@gmail.com
# andrea.gavana@maerskoil.com
... | # --------------------------------------------------------------------------------- #
# ZoomBar wxPython IMPLEMENTATION
#
# Andrea Gavana @ 19 Dec 2012, 21.00 GMT
#
#
# For all kind of problems, requests of enhancements and bug reports, please write
# to me at:
#
# andrea.gavana@gmail.com
# andrea.gavana@maerskoil.com
... |
42,267 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/agw/zoombar.py | 490,491 | 341,577 | SetupProps | ZoomBarImage | 496,512 | 491,512 | class ZoomBarImage(object):
"""
This simple class holds information about a :class:`ZoomBar` button, such as normal
bitmaps, disabled bitmap, button label, etc...
"""
def __init__(self, parent, bitmap, disabledBmp=wx.NullBitmap, label=""):
"""
Default class constructor.
:pa... | class ZoomBarImage(object):
"""
This simple class holds information about a :class:`ZoomBar` button, such as normal
bitmaps, disabled bitmap, button label, etc...
"""
def __init__(self, parent, bitmap, disabledBmp=wx.NullBitmap, label=""):
"""
Default class constructor.
:pa... |
self._width = self._oldWidth = buttonSize
self._height = self._oldHeight = buttonSize
self._oldLeft = self._left
self._oldTop = self._top
self._vCenter = self._oldLeft + int(self._oldWidth/2.0)
self._hCenter = self._oldTop + int(self._oldHeight/2.0)
self._oldBot... | """
Set up the button position and size.
:param `buttonSize`: the button original size (not zoomed), in pixels.
"""
self._width = self._oldWidth = buttonSize
self._height = self._oldHeight = buttonSize
self._oldLeft = self._left
self._oldTop = self._top... | 44 | 1,709 | 194 | 1,903 | # --------------------------------------------------------------------------------- #
# ZoomBar wxPython IMPLEMENTATION
#
# Andrea Gavana @ 19 Dec 2012, 21.00 GMT
#
#
# For all kind of problems, requests of enhancements and bug reports, please write
# to me at:
#
# andrea.gavana@gmail.com
# andrea.gavana@maerskoil.com
... | # --------------------------------------------------------------------------------- #
# ZoomBar wxPython IMPLEMENTATION
#
# Andrea Gavana @ 19 Dec 2012, 21.00 GMT
#
#
# For all kind of problems, requests of enhancements and bug reports, please write
# to me at:
#
# andrea.gavana@gmail.com
# andrea.gavana@maerskoil.com
... |
42,268 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/analogclock/analogclock.py | 621,622 | 620,628 | OnInit | AcDemoApp | 622,628 | 622,628 | class AcDemoApp(wx.App):
def OnInit(self):
FILL_FUNC_BODY | class AcDemoApp(wx.App):
def OnInit(self):
FILL_FUNC_BODY | frame = wx.Frame(None, -1, "AnalogClock", size=(375, 375))
clock = AnalogClock(frame)
frame.CentreOnScreen()
frame.Show()
return True
| frame = wx.Frame(None, -1, "AnalogClock", size=(375, 375))
clock = AnalogClock(frame)
frame.CentreOnScreen()
frame.Show()
return True
| 14 | 30 | 68 | 98 | # AnalogClock's main class
# E. A. Tacao <e.a.tacao |at| estadao.com.br>
# http://j.domaindlx.com/elements28/wxpython/
# 15 Fev 2006, 22:00 GMT-03:00
# Distributed under the wxWidgets license.
#
# For more info please see the __init__.py file.
# Tags: phoenix-port
import wx
from .styles import *
from .helpe... | # AnalogClock's main class
# E. A. Tacao <e.a.tacao |at| estadao.com.br>
# http://j.domaindlx.com/elements28/wxpython/
# 15 Fev 2006, 22:00 GMT-03:00
# Distributed under the wxWidgets license.
#
# For more info please see the __init__.py file.
# Tags: phoenix-port
import wx
from .styles import *
from .helpe... |
42,270 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/analogclock/analogclock.py | 608,609 | 538,617 | SetTickStyles | AnalogClockWindow | 609,617 | 609,617 | class AnalogClockWindow(AnalogClock):
"""
A simple derived class that provides some backwards compatibility
with the old analogclock module.
"""
def SetTickShapes(self, tsh, tsm=None):
self.SetTickPolygon(tsh)
def SetHandWeights(self, h=None, m=None, s=None):
if h:
s... | class AnalogClockWindow(AnalogClock):
"""
A simple derived class that provides some backwards compatibility
with the old analogclock module.
"""
def SetTickShapes(self, tsh, tsm=None):
self.SetTickPolygon(tsh)
def SetHandWeights(self, h=None, m=None, s=None):
if h:
s... | if h:
self.SetTickStyle(h, HOUR)
if m:
self.SetTickStyle(h, MINUTE)
# Test stuff ----------------------------------------------------------
| if h:
self.SetTickStyle(h, HOUR)
if m:
self.SetTickStyle(h, MINUTE)
# Test stuff ----------------------------------------------------------
| 12 | 724 | 56 | 780 | # AnalogClock's main class
# E. A. Tacao <e.a.tacao |at| estadao.com.br>
# http://j.domaindlx.com/elements28/wxpython/
# 15 Fev 2006, 22:00 GMT-03:00
# Distributed under the wxWidgets license.
#
# For more info please see the __init__.py file.
# Tags: phoenix-port
import wx
from .styles import *
from .helpe... | # AnalogClock's main class
# E. A. Tacao <e.a.tacao |at| estadao.com.br>
# http://j.domaindlx.com/elements28/wxpython/
# 15 Fev 2006, 22:00 GMT-03:00
# Distributed under the wxWidgets license.
#
# For more info please see the __init__.py file.
# Tags: phoenix-port
import wx
from .styles import *
from .helpe... |
42,271 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/analogclock/lib_setup/fontselect.py | 30,31 | 18,58 | GetValue | FontSelect | 31,34 | 31,34 | class FontSelect(GenButton):
def __init__(self, parent, size=(75, 21), value=None):
GenButton.__init__(self, parent, wx.ID_ANY, label="Select...",
size=size)
self.SetBezelWidth(1)
self.parent = parent
self.SetValue(value)
self.parent.Bind(wx.EVT_B... | class FontSelect(GenButton):
def __init__(self, parent, size=(75, 21), value=None):
GenButton.__init__(self, parent, wx.ID_ANY, label="Select...",
size=size)
self.SetBezelWidth(1)
self.parent = parent
self.SetValue(value)
self.parent.Bind(wx.EVT_B... | return self.value
| return self.value
| 2 | 363 | 11 | 374 | # AnalogClock's font selector for setup dialog
# E. A. Tacao <e.a.tacao |at| estadao.com.br>
# http://j.domaindlx.com/elements28/wxpython/
# 15 Fev 2006, 22:00 GMT-03:00
# Distributed under the wxWidgets license.
# Tags: phoenix-port
import wx
from wx.lib.newevent import NewEvent
from wx.lib.buttons import G... | # AnalogClock's font selector for setup dialog
# E. A. Tacao <e.a.tacao |at| estadao.com.br>
# http://j.domaindlx.com/elements28/wxpython/
# 15 Fev 2006, 22:00 GMT-03:00
# Distributed under the wxWidgets license.
# Tags: phoenix-port
import wx
from wx.lib.newevent import NewEvent
from wx.lib.buttons import G... |
42,272 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/analogclock/setup.py | 450,451 | 401,491 | ResetClock | Setup | 451,491 | 451,491 | class Setup(wx.Dialog):
"""AnalogClock customization dialog."""
def __init__(self, parent):
wx.Dialog.__init__(self, parent, title="AnalogClock Setup")
sizer = wx.BoxSizer(wx.VERTICAL)
self.customcolours = csel.CustomColourData()
nb = self.nb = wx.Notebook(self)
for s... | class Setup(wx.Dialog):
"""AnalogClock customization dialog."""
def __init__(self, parent):
wx.Dialog.__init__(self, parent, title="AnalogClock Setup")
sizer = wx.BoxSizer(wx.VERTICAL)
self.customcolours = csel.CustomColourData()
nb = self.nb = wx.Notebook(self)
for s... | clock = self.GetParent()
wx.BeginBusyCursor()
clock.SetClockStyle(styles.DEFAULT_CLOCK_STYLE)
clock.SetTickStyle(styles.TICKS_POLY, styles.HOUR)
clock.SetTickStyle(styles.TICKS_CIRCLE, styles.MINUTE)
clock.SetTickFont(wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT))... | clock = self.GetParent()
wx.BeginBusyCursor()
clock.SetClockStyle(styles.DEFAULT_CLOCK_STYLE)
clock.SetTickStyle(styles.TICKS_POLY, styles.HOUR)
clock.SetTickStyle(styles.TICKS_CIRCLE, styles.MINUTE)
clock.SetTickFont(wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT))... | 41 | 540 | 476 | 1,016 | # AnalogClock setup dialog
# E. A. Tacao <e.a.tacao |at| estadao.com.br>
# http://j.domaindlx.com/elements28/wxpython/
# 15 Fev 2006, 22:00 GMT-03:00
# Distributed under the wxWidgets license.
# Tags: phoenix-port
import functools
import wx
import wx.lib.colourselect as csel
from . import styles
from .lib_... | # AnalogClock setup dialog
# E. A. Tacao <e.a.tacao |at| estadao.com.br>
# http://j.domaindlx.com/elements28/wxpython/
# 15 Fev 2006, 22:00 GMT-03:00
# Distributed under the wxWidgets license.
# Tags: phoenix-port
import functools
import wx
import wx.lib.colourselect as csel
from . import styles
from .lib_... |
42,273 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/analogclock/setup.py | 333,334 | 299,370 | OnChanged | StylesPanel | 334,345 | 334,345 | class StylesPanel(bt.ButtonTreeCtrlPanel):
def __init__(self, parent):
bt.ButtonTreeCtrlPanel.__init__(self, parent)
self.clock = self.GetGrandParent().GetParent()
root = self.AddItem("Styles")
g1 = self.AddItem("General", parent=root)
g2 = self.AddItem("Hours", parent=ro... | class StylesPanel(bt.ButtonTreeCtrlPanel):
def __init__(self, parent):
bt.ButtonTreeCtrlPanel.__init__(self, parent)
self.clock = self.GetGrandParent().GetParent()
root = self.AddItem("Styles")
g1 = self.AddItem("General", parent=root)
g2 = self.AddItem("Hours", parent=ro... | clockStyle, hourStyle, minuteStyle = \
[functools.reduce(lambda x, y: x | y,
[getattr(styles, item) \
for item in self.GetStringItemsChecked(group)], 0) \
for group in self.groups]
self.clock.SetClockStyle(clockStyle)
self.clock.SetTickStyle(hourStyl... | clockStyle, hourStyle, minuteStyle = \
[functools.reduce(lambda x, y: x | y,
[getattr(styles, item) \
for item in self.GetStringItemsChecked(group)], 0) \
for group in self.groups]
self.clock.SetClockStyle(clockStyle)
self.clock.SetTickStyle(hourStyl... | 29 | 707 | 137 | 844 | # AnalogClock setup dialog
# E. A. Tacao <e.a.tacao |at| estadao.com.br>
# http://j.domaindlx.com/elements28/wxpython/
# 15 Fev 2006, 22:00 GMT-03:00
# Distributed under the wxWidgets license.
# Tags: phoenix-port
import functools
import wx
import wx.lib.colourselect as csel
from . import styles
from .lib_... | # AnalogClock setup dialog
# E. A. Tacao <e.a.tacao |at| estadao.com.br>
# http://j.domaindlx.com/elements28/wxpython/
# 15 Fev 2006, 22:00 GMT-03:00
# Distributed under the wxWidgets license.
# Tags: phoenix-port
import functools
import wx
import wx.lib.colourselect as csel
from . import styles
from .lib_... |
42,274 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/analogclock/setup.py | 113,114 | 24,167 | UpdateControls | _GroupBase | 114,167 | 114,167 | class _GroupBase(wx.Panel):
def __init__(self, parent, title, group):
wx.Panel.__init__(self, parent)
self.parent = parent
self.clock = self.parent.clock
self.group = group
self.target = {"Hours": styles.HOUR,
"Minutes": styles.MINUTE,
... | class _GroupBase(wx.Panel):
def __init__(self, parent, title, group):
wx.Panel.__init__(self, parent)
self.parent = parent
self.clock = self.parent.clock
self.group = group
self.target = {"Hours": styles.HOUR,
"Minutes": styles.MINUTE,
... | if hasattr(self, "ft"):
self.ft.SetValue(self.clock.GetTickFont(self.target)[0])
if hasattr(self, "fc"):
if self.group == "Hands":
self.fc.SetValue(self.clock.GetHandFillColour(self.target)[0])
elif self.group == "Ticks":
self.fc.SetVa... | if hasattr(self, "ft"):
self.ft.SetValue(self.clock.GetTickFont(self.target)[0])
if hasattr(self, "fc"):
if self.group == "Hands":
self.fc.SetValue(self.clock.GetHandFillColour(self.target)[0])
elif self.group == "Ticks":
self.fc.SetVa... | 101 | 1,004 | 714 | 1,718 | # AnalogClock setup dialog
# E. A. Tacao <e.a.tacao |at| estadao.com.br>
# http://j.domaindlx.com/elements28/wxpython/
# 15 Fev 2006, 22:00 GMT-03:00
# Distributed under the wxWidgets license.
# Tags: phoenix-port
import functools
import wx
import wx.lib.colourselect as csel
from . import styles
from .lib_... | # AnalogClock setup dialog
# E. A. Tacao <e.a.tacao |at| estadao.com.br>
# http://j.domaindlx.com/elements28/wxpython/
# 15 Fev 2006, 22:00 GMT-03:00
# Distributed under the wxWidgets license.
# Tags: phoenix-port
import functools
import wx
import wx.lib.colourselect as csel
from . import styles
from .lib_... |
42,275 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/analogclock/setup.py | 294,295 | 285,299 | UpdateControls | _PageBase | 295,299 | 295,299 | class _PageBase(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
self.clock = self.GetGrandParent().GetParent()
self.sizer = wx.BoxSizer(wx.VERTICAL)
self.SetSizer(self.sizer)
def UpdateControls(self):
FILL_FUNC_BODY | class _PageBase(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
self.clock = self.GetGrandParent().GetParent()
self.sizer = wx.BoxSizer(wx.VERTICAL)
self.SetSizer(self.sizer)
def UpdateControls(self):
FILL_FUNC_BODY | [group.UpdateControls() for group in self.GetChildren()]
#----------------------------------------------------------------------
| [group.UpdateControls() for group in self.GetChildren()]
#----------------------------------------------------------------------
| 6 | 102 | 28 | 130 | # AnalogClock setup dialog
# E. A. Tacao <e.a.tacao |at| estadao.com.br>
# http://j.domaindlx.com/elements28/wxpython/
# 15 Fev 2006, 22:00 GMT-03:00
# Distributed under the wxWidgets license.
# Tags: phoenix-port
import functools
import wx
import wx.lib.colourselect as csel
from . import styles
from .lib_... | # AnalogClock setup dialog
# E. A. Tacao <e.a.tacao |at| estadao.com.br>
# http://j.domaindlx.com/elements28/wxpython/
# 15 Fev 2006, 22:00 GMT-03:00
# Distributed under the wxWidgets license.
# Tags: phoenix-port
import functools
import wx
import wx.lib.colourselect as csel
from . import styles
from .lib_... |
42,276 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/anchors.py | 85,89 | 24,104 | setConstraintSides | LayoutAnchors | 89,104 | 89,104 | class LayoutAnchors(wx.LayoutConstraints):
"""
A class that implements Delphi's Anchors with :class:`wx.LayoutConstraints`.
Anchored sides maintain the distance from the edge of the control
to the same edge of the parent. When neither side is selected,
the control keeps the same relative position ... | class LayoutAnchors(wx.LayoutConstraints):
"""
A class that implements Delphi's Anchors with :class:`wx.LayoutConstraints`.
Anchored sides maintain the distance from the edge of the control
to the same edge of the parent. When neither side is selected,
the control keeps the same relative position ... | if side2Anchor:
side2.SameAs(parent, side2Edge, pSize - (cPos + cSize))
if side1Anchor:
side1.SameAs(parent, side1Edge, cPos)
if not side2Anchor:
size.AsIs()
else:
size.AsIs()
if not side2Anchor:
centr... | if side2Anchor:
side2.SameAs(parent, side2Edge, pSize - (cPos + cSize))
if side1Anchor:
side1.SameAs(parent, side1Edge, cPos)
if not side2Anchor:
size.AsIs()
else:
size.AsIs()
if not side2Anchor:
centr... | 32 | 719 | 149 | 868 | #----------------------------------------------------------------------
# Name: wx.lib.anchors
# Purpose: A class that provides an easy to use interface over layout
# constraints for anchored layout.
#
# Author: Riaan Booysen
#
# Created: 15-Dec-2000
# Copyright: (c) 2000-2020 by Tota... | #----------------------------------------------------------------------
# Name: wx.lib.anchors
# Purpose: A class that provides an easy to use interface over layout
# constraints for anchored layout.
#
# Author: Riaan Booysen
#
# Created: 15-Dec-2000
# Copyright: (c) 2000-2020 by Tota... |
42,277 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/art/img2pyartprov.py | 49,50 | 26,57 | CreateBitmap | Img2PyArtProvider | 50,57 | 50,57 | class Img2PyArtProvider(wx.ArtProvider):
def __init__(self, imageModule, artIdPrefix='wxART_'):
self.catalog = {}
self.index = []
self.UpdateFromImageModule(imageModule)
self.artIdPrefix = artIdPrefix
wx.ArtProvider.__init__(self)
def UpdateFromImageModule(self, imageMo... | class Img2PyArtProvider(wx.ArtProvider):
def __init__(self, imageModule, artIdPrefix='wxART_'):
self.catalog = {}
self.index = []
self.UpdateFromImageModule(imageModule)
self.artIdPrefix = artIdPrefix
wx.ArtProvider.__init__(self)
def UpdateFromImageModule(self, imageMo... | if artId.startswith(self.artIdPrefix):
name = artId[len(self.artIdPrefix):]
if name in self.catalog:
return self.catalog[name].GetBitmap()
return _NULL_BMP
| if artId.startswith(self.artIdPrefix):
name = artId[len(self.artIdPrefix):]
if name in self.catalog:
return self.catalog[name].GetBitmap()
return _NULL_BMP
| 13 | 236 | 73 | 309 | #-----------------------------------------------------------------------------
# Name: img2pyartprov.py
# Purpose:
#
# Author: Riaan Booysen
#
# Copyright: (c) 2006
# Licence: wxPython
#-----------------------------------------------------------------------------
"""ArtProvider class that publishes im... | #-----------------------------------------------------------------------------
# Name: img2pyartprov.py
# Purpose:
#
# Author: Riaan Booysen
#
# Copyright: (c) 2006
# Licence: wxPython
#-----------------------------------------------------------------------------
"""ArtProvider class that publishes im... |
42,278 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/busy.py | 60,61 | 22,80 | Close | BusyInfo | 64,71 | 61,71 | class BusyInfo(object):
"""
This class is just like :class:`wx.BusyInfo`, except that its default
size is smaller, (unless the size of the message requires a larger window
size) and the background and foreground colors of the message box can be
set.
Creating an instance of the class will create... | class BusyInfo(object):
"""
This class is just like :class:`wx.BusyInfo`, except that its default
size is smaller, (unless the size of the message requires a larger window
size) and the background and foreground colors of the message box can be
set.
Creating an instance of the class will create... | if self.frame:
self.frame.Hide()
self.frame.Close()
self.frame = None
# Magic methods for using this class as a Context Manager
| """
Hide and close the busy info box.
"""
if self.frame:
self.frame.Hide()
self.frame.Close()
self.frame = None
# Magic methods for using this class as a Context Manager
| 18 | 516 | 53 | 569 | #---------------------------------------------------------------------------
# File: busy.py
# Description: A class like wx.BusyInfo but which doesn't take up so much
# space by default and which has a nicer look.
#
# Date: 11-Sept-2012
# Author: Robin Dunn
# Tags: pho... | #---------------------------------------------------------------------------
# File: busy.py
# Description: A class like wx.BusyInfo but which doesn't take up so much
# space by default and which has a nicer look.
#
# Date: 11-Sept-2012
# Author: Robin Dunn
# Tags: pho... |
42,279 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/buttons.py | 835,836 | 675,853 | DrawLabel | GenBitmapButton | 836,853 | 836,853 | class GenBitmapButton(GenButton):
""" A generic bitmap button. """
def __init__(self, parent, id=-1, bitmap=wx.NullBitmap,
pos = wx.DefaultPosition, size = wx.DefaultSize,
style = 0, validator = wx.DefaultValidator,
name = "genbutton"):
"""
Def... | class GenBitmapButton(GenButton):
""" A generic bitmap button. """
def __init__(self, parent, id=-1, bitmap=wx.NullBitmap,
pos = wx.DefaultPosition, size = wx.DefaultSize,
style = 0, validator = wx.DefaultValidator,
name = "genbutton"):
"""
Def... | bmp = self.bmpLabel
if self.bmpDisabled and not self.IsEnabled():
bmp = self.bmpDisabled
if self.bmpFocus and self.hasFocus:
bmp = self.bmpFocus
if self.bmpSelected and not self.up:
bmp = self.bmpSelected
bw,bh = bmp.GetWidth(), bmp.GetHeight()... | bmp = self.bmpLabel
if self.bmpDisabled and not self.IsEnabled():
bmp = self.bmpDisabled
if self.bmpFocus and self.hasFocus:
bmp = self.bmpFocus
if self.bmpSelected and not self.up:
bmp = self.bmpSelected
bw,bh = bmp.GetWidth(), bmp.GetHeight()... | 49 | 1,434 | 199 | 1,633 | #----------------------------------------------------------------------
# Name: wx.lib.buttons
# Purpose: Various kinds of generic buttons, (not native controls but
# self-drawn.)
#
# Author: Robin Dunn
#
# Created: 9-Dec-1999
# Copyright: (c) 1999-2020 by Total Control Software
# Lic... | #----------------------------------------------------------------------
# Name: wx.lib.buttons
# Purpose: Various kinds of generic buttons, (not native controls but
# self-drawn.)
#
# Author: Robin Dunn
#
# Created: 9-Dec-1999
# Copyright: (c) 1999-2020 by Total Control Software
# Lic... |
42,280 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/buttons.py | 901,902 | 853,940 | DrawLabel | GenBitmapTextButton | 902,940 | 902,940 | class GenBitmapTextButton(GenBitmapButton):
""" A generic bitmapped button with text label. """
def __init__(self, parent, id=-1, bitmap=wx.NullBitmap, label='',
pos = wx.DefaultPosition, size = wx.DefaultSize,
style = 0, validator = wx.DefaultValidator,
name ... | class GenBitmapTextButton(GenBitmapButton):
""" A generic bitmapped button with text label. """
def __init__(self, parent, id=-1, bitmap=wx.NullBitmap, label='',
pos = wx.DefaultPosition, size = wx.DefaultSize,
style = 0, validator = wx.DefaultValidator,
name ... | bmp = self.bmpLabel
if bmp is not None: # if the bitmap is used
if self.bmpDisabled and not self.IsEnabled():
bmp = self.bmpDisabled
if self.bmpFocus and self.hasFocus:
bmp = self.bmpFocus
if self.bmpSelected and not self.up:
... | bmp = self.bmpLabel
if bmp is not None: # if the bitmap is used
if self.bmpDisabled and not self.IsEnabled():
bmp = self.bmpDisabled
if self.bmpFocus and self.hasFocus:
bmp = self.bmpFocus
if self.bmpSelected and not self.up:
... | 141 | 602 | 482 | 1,084 | #----------------------------------------------------------------------
# Name: wx.lib.buttons
# Purpose: Various kinds of generic buttons, (not native controls but
# self-drawn.)
#
# Author: Robin Dunn
#
# Created: 9-Dec-1999
# Copyright: (c) 1999-2020 by Total Control Software
# Lic... | #----------------------------------------------------------------------
# Name: wx.lib.buttons
# Purpose: Various kinds of generic buttons, (not native controls but
# self-drawn.)
#
# Author: Robin Dunn
#
# Created: 9-Dec-1999
# Copyright: (c) 1999-2020 by Total Control Software
# Lic... |
42,282 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/buttons.py | 83,84 | 67,126 | SetIsDown | GenButtonEvent | 89,93 | 84,93 | class GenButtonEvent(wx.CommandEvent):
""" Event sent from the generic buttons when the button is activated. """
def __init__(self, eventType, id):
"""
Default class constructor.
:param integer `eventType`: the event type;
:param integer `id`: the event identifier.
"""
... | class GenButtonEvent(wx.CommandEvent):
""" Event sent from the generic buttons when the button is activated. """
def __init__(self, eventType, id):
"""
Default class constructor.
:param integer `eventType`: the event type;
:param integer `id`: the event identifier.
"""
... |
self.isDown = isDown
| """
Set the button toggle status as 'down' or 'up'.
:param bool `isDown`: ``True`` if the button is clicked, ``False`` otherwise.
"""
self.isDown = isDown
| 3 | 360 | 16 | 376 | #----------------------------------------------------------------------
# Name: wx.lib.buttons
# Purpose: Various kinds of generic buttons, (not native controls but
# self-drawn.)
#
# Author: Robin Dunn
#
# Created: 9-Dec-1999
# Copyright: (c) 1999-2020 by Total Control Software
# Lic... | #----------------------------------------------------------------------
# Name: wx.lib.buttons
# Purpose: Various kinds of generic buttons, (not native controls but
# self-drawn.)
#
# Author: Robin Dunn
#
# Created: 9-Dec-1999
# Copyright: (c) 1999-2020 by Total Control Software
# Lic... |
42,283 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/buttons.py | 1099,1100 | 1076,1115 | DrawBezel | __ThemedMixin | 1100,1115 | 1100,1115 | class __ThemedMixin(object):
""" Uses the native renderer to draw the bezel, also handle mouse-overs. """
def InitOtherEvents(self):
""" Initializes other events needed for themed buttons. """
self.Bind(wx.EVT_ENTER_WINDOW, self.OnMouse)
self.Bind(wx.EVT_LEAVE_WINDOW, self.OnMouse)
... | class __ThemedMixin(object):
""" Uses the native renderer to draw the bezel, also handle mouse-overs. """
def InitOtherEvents(self):
""" Initializes other events needed for themed buttons. """
self.Bind(wx.EVT_ENTER_WINDOW, self.OnMouse)
self.Bind(wx.EVT_LEAVE_WINDOW, self.OnMouse)
... |
rect = wx.Rect(x1, y1, x2, y2)
if self.up:
state = 0
else:
state = wx.CONTROL_PRESSED | wx.CONTROL_SELECTED
if not self.IsEnabled():
state = wx.CONTROL_DISABLED
pt = self.ScreenToClient(wx.GetMousePosition())
if self.GetClientRect().Co... |
rect = wx.Rect(x1, y1, x2, y2)
if self.up:
state = 0
else:
state = wx.CONTROL_PRESSED | wx.CONTROL_SELECTED
if not self.IsEnabled():
state = wx.CONTROL_DISABLED
pt = self.ScreenToClient(wx.GetMousePosition())
if self.GetClientRect().Co... | 35 | 247 | 164 | 411 | #----------------------------------------------------------------------
# Name: wx.lib.buttons
# Purpose: Various kinds of generic buttons, (not native controls but
# self-drawn.)
#
# Author: Robin Dunn
#
# Created: 9-Dec-1999
# Copyright: (c) 1999-2020 by Total Control Software
# Lic... | #----------------------------------------------------------------------
# Name: wx.lib.buttons
# Purpose: Various kinds of generic buttons, (not native controls but
# self-drawn.)
#
# Author: Robin Dunn
#
# Created: 9-Dec-1999
# Copyright: (c) 1999-2020 by Total Control Software
# Lic... |
42,284 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/buttons.py | 971,972 | 940,1061 | OnLeftDown | __ToggleMixin | 977,991 | 972,991 | class __ToggleMixin(object):
"""
A mixin that allows to transform :class:`GenButton` in the corresponding
toggle button.
"""
def SetToggle(self, flag):
"""
Sets the button as toggled/not toggled.
:param bool `flag`: ``True`` to set the button as toggled, ``False`` otherwise... | class __ToggleMixin(object):
"""
A mixin that allows to transform :class:`GenButton` in the corresponding
toggle button.
"""
def SetToggle(self, flag):
"""
Sets the button as toggled/not toggled.
:param bool `flag`: ``True`` to set the button as toggled, ``False`` otherwise... |
if not self.IsEnabled():
return
self.saveUp = self.up
if self.HasCapture():
return
self.up = not self.up
self.CaptureMouse()
self.SetFocus()
self.Refresh()
| """
Handles the ``wx.EVT_LEFT_DOWN`` event for :class:`GenButton` when used as toggle button.
:param `event`: a :class:`wx.MouseEvent` event to be processed.
"""
if not self.IsEnabled():
return
self.saveUp = self.up
if self.HasCapture():
... | 17 | 838 | 85 | 923 | #----------------------------------------------------------------------
# Name: wx.lib.buttons
# Purpose: Various kinds of generic buttons, (not native controls but
# self-drawn.)
#
# Author: Robin Dunn
#
# Created: 9-Dec-1999
# Copyright: (c) 1999-2020 by Total Control Software
# Lic... | #----------------------------------------------------------------------
# Name: wx.lib.buttons
# Purpose: Various kinds of generic buttons, (not native controls but
# self-drawn.)
#
# Author: Robin Dunn
#
# Created: 9-Dec-1999
# Copyright: (c) 1999-2020 by Total Control Software
# Lic... |
42,285 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/colourchooser/canvas.py | 53,54 | 28,70 | GetBitmap | BitmapBuffer | 55,59 | 54,59 | class BitmapBuffer(wx.MemoryDC):
"""A screen buffer class.
This class implements a screen output buffer. Data is meant to
be drawn in the buffer class and then blitted directly to the
output device, or on-screen window.
"""
def __init__(self, width, height, colour):
"""Initialize the em... | class BitmapBuffer(wx.MemoryDC):
"""A screen buffer class.
This class implements a screen output buffer. Data is meant to
be drawn in the buffer class and then blitted directly to the
output device, or on-screen window.
"""
def __init__(self, width, height, colour):
"""Initialize the em... | return self.bitmap
# GetPixel seems to always return (-1, -1, -1, 255)
# on OS X so this is a workaround for that issue.
| """Returns the internal bitmap for direct drawing."""
return self.bitmap
# GetPixel seems to always return (-1, -1, -1, 255)
# on OS X so this is a workaround for that issue.
| 24 | 371 | 51 | 422 | """
PyColourChooser
Copyright (C) 2002 Michael Gilfix <mgilfix@eecs.tufts.edu>
This file is part of PyColourChooser.
This version of PyColourChooser is open source; you can redistribute it
and/or modify it under the licensed terms.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRA... | """
PyColourChooser
Copyright (C) 2002 Michael Gilfix <mgilfix@eecs.tufts.edu>
This file is part of PyColourChooser.
This version of PyColourChooser is open source; you can redistribute it
and/or modify it under the licensed terms.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRA... |
42,286 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/colourchooser/canvas.py | 101,102 | 70,146 | MakeNewBuffer | Canvas | 102,106 | 102,106 | class Canvas(wx.Window):
"""A canvas class for arbitrary drawing.
The Canvas class implements a window that allows for drawing
arbitrary graphics. It implements a double buffer scheme and
blits the off-screen buffer to the window during paint calls
by the windowing system for speed.
Some other... | class Canvas(wx.Window):
"""A canvas class for arbitrary drawing.
The Canvas class implements a window that allows for drawing
arbitrary graphics. It implements a double buffer scheme and
blits the off-screen buffer to the window during paint calls
by the windowing system for speed.
Some other... | size = self.GetClientSize()
self.buffer = BitmapBuffer(size[0], size[1],
self.GetBackgroundColour())
| size = self.GetClientSize()
self.buffer = BitmapBuffer(size[0], size[1],
self.GetBackgroundColour())
| 8 | 714 | 42 | 756 | """
PyColourChooser
Copyright (C) 2002 Michael Gilfix <mgilfix@eecs.tufts.edu>
This file is part of PyColourChooser.
This version of PyColourChooser is open source; you can redistribute it
and/or modify it under the licensed terms.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRA... | """
PyColourChooser
Copyright (C) 2002 Michael Gilfix <mgilfix@eecs.tufts.edu>
This file is part of PyColourChooser.
This version of PyColourChooser is open source; you can redistribute it
and/or modify it under the licensed terms.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRA... |
42,287 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/colourchooser/pycolourbox.py | 76,77 | 27,90 | SetHighlight | PyColourBox | 78,90 | 77,90 | class PyColourBox(wx.Panel):
"""A Colour Selection Box
The Colour selection box implements button like behavior but contains
a solid-filled, coloured sub-box. Placing the colour in a sub-box allows
for filling in the main panel's background for a high-lighting effect.
"""
def __init__(self, par... | class PyColourBox(wx.Panel):
"""A Colour Selection Box
The Colour selection box implements button like behavior but contains
a solid-filled, coloured sub-box. Placing the colour in a sub-box allows
for filling in the main panel's background for a high-lighting effect.
"""
def __init__(self, par... | # XXX This code has been disabled for now until I can figure out
# how to get this to work reliably across all platforms.
if val:
#A wxColourPtr is returned in windows, making this difficult
red =(self.real_bg.Red() - 45) % 255
green =(self.real_bg.Green() - 4... | """Accepts a boolean 'val' toggling the box's highlighting."""
# XXX This code has been disabled for now until I can figure out
# how to get this to work reliably across all platforms.
if val:
#A wxColourPtr is returned in windows, making this difficult
red =(self... | 63 | 661 | 191 | 852 | """
PyColourChooser
Copyright (C) 2002 Michael Gilfix <mgilfix@eecs.tufts.edu>
This file is part of PyColourChooser.
This version of PyColourChooser is open source; you can redistribute it
and/or modify it under the licensed terms.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRA... | """
PyColourChooser
Copyright (C) 2002 Michael Gilfix <mgilfix@eecs.tufts.edu>
This file is part of PyColourChooser.
This version of PyColourChooser is open source; you can redistribute it
and/or modify it under the licensed terms.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRA... |
42,288 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/colourchooser/pycolourslider.py | 81,82 | 36,101 | DrawBuffer | PyColourSlider | 84,101 | 82,101 | class PyColourSlider(canvas.Canvas):
"""A Pure-Python Colour Slider
The colour slider displays transitions from value 0 to value 1 in
HSV, allowing the user to select a colour within the transition
spectrum.
This class is best accompanying by a wxSlider that allows the user
to select a particu... | class PyColourSlider(canvas.Canvas):
"""A Pure-Python Colour Slider
The colour slider displays transitions from value 0 to value 1 in
HSV, allowing the user to select a colour within the transition
spectrum.
This class is best accompanying by a wxSlider that allows the user
to select a particu... | if self.base_colour is None:
return
target_red = self.base_colour.Red()
target_green = self.base_colour.Green()
target_blue = self.base_colour.Blue()
h,s,v = colorsys.rgb_to_hsv(target_red / 255.0, target_green / 255.0,
target_blu... | """Actual implementation of the widget's drawing. We simply draw
from value 0.0 to value 1.0 in HSV."""
if self.base_colour is None:
return
target_red = self.base_colour.Red()
target_green = self.base_colour.Green()
target_blue = self.base_colour.Blue()
... | 64 | 465 | 291 | 756 | """
PyColourChooser
Copyright (C) 2002 Michael Gilfix
This file is part of PyColourChooser.
You should have received a file COPYING containing license terms
along with this program; if not, write to Michael Gilfix
(mgilfix@eecs.tufts.edu) for a copy.
This version of PyColourChooser is open source; you can redistribu... | """
PyColourChooser
Copyright (C) 2002 Michael Gilfix
This file is part of PyColourChooser.
You should have received a file COPYING containing license terms
along with this program; if not, write to Michael Gilfix
(mgilfix@eecs.tufts.edu) for a copy.
This version of PyColourChooser is open source; you can redistribu... |
42,289 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/colourchooser/pypalette.py | 179,180 | 100,211 | GeneratePaletteBMP | PyPalette | 191,211 | 180,211 | class PyPalette(canvas.Canvas):
"""The Pure-Python Palette
The PyPalette is a pure python implementation of a colour palette. The
palette implementation here imitates the palette layout used by MS
Windows and Adobe Photoshop.
The actual palette image has been embedded as an XPM for speed. The
... | class PyPalette(canvas.Canvas):
"""The Pure-Python Palette
The PyPalette is a pure python implementation of a colour palette. The
palette implementation here imitates the palette layout used by MS
Windows and Adobe Photoshop.
The actual palette image has been embedded as an XPM for speed. The
... | self.vertical_step = self.VERTICAL_STEP * granularity
width, height = self.GetSize ()
# simply iterate over hue (horizontal) and saturation (vertical)
value = 1.0
for y in range(0, height, self.vertical_step):
saturation = 1.0 - float(y) / float(height)
f... | """The actual palette drawing algorithm.
This used to be 100% reverse engineered by looking at the
values on the MS map, but has since been redone Correctly(tm)
according to the HSV (hue, saturation, value) colour model by
Charl P. Botha <http://cpbotha.net/>.
Speed is ... | 88 | 975 | 372 | 1,347 | """
PyColourChooser
Copyright (C) 2002 Michael Gilfix
This file is part of PyColourChooser.
You should have received a file COPYING containing license terms
along with this program; if not, write to Michael Gilfix
(mgilfix@eecs.tufts.edu) for a copy.
This version of PyColourChooser is open source; you can redistribu... | """
PyColourChooser
Copyright (C) 2002 Michael Gilfix
This file is part of PyColourChooser.
You should have received a file COPYING containing license terms
along with this program; if not, write to Michael Gilfix
(mgilfix@eecs.tufts.edu) for a copy.
This version of PyColourChooser is open source; you can redistribu... |
42,292 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/colourselect.py | 108,109 | 89,118 | GetValue | ColourSelectEvent | 114,118 | 109,118 | class ColourSelectEvent(wx.PyCommandEvent):
"""
:class:`wx.ColourSelectEvent` is a special subclassing of :class:`wx.CommandEvent`
and it provides for a custom event sent every time the user chooses a colour.
"""
def __init__(self, id, value):
"""
Default class constructor.
... | class ColourSelectEvent(wx.PyCommandEvent):
"""
:class:`wx.ColourSelectEvent` is a special subclassing of :class:`wx.CommandEvent`
and it provides for a custom event sent every time the user chooses a colour.
"""
def __init__(self, id, value):
"""
Default class constructor.
... |
return self.value
| """
Returns the currently selected colour.
:rtype: :class:`wx.Colour`
"""
return self.value
| 2 | 217 | 13 | 230 | #----------------------------------------------------------------------------
# Name: ColourSelect.py
# Purpose: Colour Box Selection Control
#
# Author: Lorne White, Lorne.White@telusplanet.net
#
# Created: Feb 25, 2001
# Licence: wxWindows license
# Tags: phoenix-port, unittest, d... | #----------------------------------------------------------------------------
# Name: ColourSelect.py
# Purpose: Colour Box Selection Control
#
# Author: Lorne White, Lorne.White@telusplanet.net
#
# Created: Feb 25, 2001
# Licence: wxWindows license
# Tags: phoenix-port, unittest, d... |
42,293 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/colourselect.py | 139,141 | 123,150 | Colours | CustomColourData | 141,150 | 141,150 | class CustomColourData(object):
"""
A simple container for tracking custom colours to be shown in the colour
dialog, and which facilitates reuse of this collection across multiple
instances or multiple invocations of the :class:`ColourSelect` button.
"""
COUNT = 16
def __init__(self):
... | class CustomColourData(object):
"""
A simple container for tracking custom colours to be shown in the colour
dialog, and which facilitates reuse of this collection across multiple
instances or multiple invocations of the :class:`ColourSelect` button.
"""
COUNT = 16
def __init__(self):
... | # slice it into the current list to keep the same list instance
if isinstance(value, CustomColourData):
value = value.Colours
self._customColours[:] = value
#----------------------------------------------------------------------------
| # slice it into the current list to keep the same list instance
if isinstance(value, CustomColourData):
value = value.Colours
self._customColours[:] = value
#----------------------------------------------------------------------------
| 23 | 146 | 64 | 210 | #----------------------------------------------------------------------------
# Name: ColourSelect.py
# Purpose: Colour Box Selection Control
#
# Author: Lorne White, Lorne.White@telusplanet.net
#
# Created: Feb 25, 2001
# Licence: wxWindows license
# Tags: phoenix-port, unittest, d... | #----------------------------------------------------------------------------
# Name: ColourSelect.py
# Purpose: Colour Box Selection Control
#
# Author: Lorne White, Lorne.White@telusplanet.net
#
# Created: Feb 25, 2001
# Licence: wxWindows license
# Tags: phoenix-port, unittest, d... |
42,294 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/colourutils.py | 46,47 | 1,119 | AdjustColour | 59,74 | 47,74 | #----------------------------------------------------------------------
# Name: colourutils.py
# Purpose: Some useful colour-related utility functions.
#
# Author: Cody Precord
#
# Created: 13-March-2001
# Copyright: (c) 2001-2020 by Total Control Software
# Licence: wxWindows license
# Tags: ... | #----------------------------------------------------------------------
# Name: colourutils.py
# Purpose: Some useful colour-related utility functions.
#
# Author: Cody Precord
#
# Created: 13-March-2001
# Copyright: (c) 2001-2020 by Total Control Software
# Licence: wxWindows license
# Tags: ... |
radj, gadj, badj = [ int(val * (abs(percent) / 100.))
for val in color.Get(includeAlpha=False) ]
if percent < 0:
radj, gadj, badj = [ val * -1 for val in [radj, gadj, badj] ]
else:
radj, gadj, badj = [ val or 255 for val in [radj, gadj, badj] ]
red = min(color... | """
Brighten/darken input colour by `percent` and adjust alpha
channel if needed. Returns the modified color.
:param wx.Colour `color`: color object to adjust;
:param integer `percent`: percent to adjust +(brighten) or -(darken);
:param integer `alpha`: amount to adjust alpha channel.
:rty... | 73 | 963 | 210 | 1,173 | #----------------------------------------------------------------------
# Name: colourutils.py
# Purpose: Some useful colour-related utility functions.
#
# Author: Cody Precord
#
# Created: 13-March-2001
# Copyright: (c) 2001-2020 by Total Control Software
# Licence: wxWindows license
# Tags: ... | #----------------------------------------------------------------------
# Name: colourutils.py
# Purpose: Some useful colour-related utility functions.
#
# Author: Cody Precord
#
# Created: 13-March-2001
# Copyright: (c) 2001-2020 by Total Control Software
# Licence: wxWindows license
# Tags: ... | |
42,295 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/dragscroller.py | 33,34 | 14,80 | GetUpdateRate | DragScroller | 34,35 | 34,35 | class DragScroller:
""" Scrolls a wx.ScrollWindow in the direction and speed of a mouse drag.
Call Start with the position of the drag start.
Call Stop on the drag release. """
def __init__(self, scrollwin=None, rate=30, sensitivity=0.75):
self.scrollwin = scrollwin
self.rate =... | class DragScroller:
""" Scrolls a wx.ScrollWindow in the direction and speed of a mouse drag.
Call Start with the position of the drag start.
Call Stop on the drag release. """
def __init__(self, scrollwin=None, rate=30, sensitivity=0.75):
self.scrollwin = scrollwin
self.rate =... | return self.rate
| return self.rate
| 2 | 659 | 7 | 666 | #-----------------------------------------------------------------------------
# Name: dragscroller.py
# Purpose: Scrolls a wx.ScrollWindow by dragging
#
# Author: Riaan Booysen
#
# Created: 2006/09/05
# Copyright: (c) 2006
# Licence: wxPython
#-------------------------------------------------... | #-----------------------------------------------------------------------------
# Name: dragscroller.py
# Purpose: Scrolls a wx.ScrollWindow by dragging
#
# Author: Riaan Booysen
#
# Created: 2006/09/05
# Copyright: (c) 2006
# Licence: wxPython
#-------------------------------------------------... |
42,296 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/editor/selection.py | 13,14 | 1,45 | Selection | 14,45 | 14,45 | # 12/14/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o 2.5 compatibility update.
#
def RestOfLine(sx, width, data, bool):
if len(data) == 0 and sx == 0:
return [('', bool)]
if sx >= len(data):
return []
return [(data[sx:sx+width], bool)]
def Selection(SelectBegin,SelectEnd, sx, width... | # 12/14/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o 2.5 compatibility update.
#
def RestOfLine(sx, width, data, bool):
if len(data) == 0 and sx == 0:
return [('', bool)]
if sx >= len(data):
return []
return [(data[sx:sx+width], bool)]
def Selection(SelectBegin,SelectEnd, sx, width... | if SelectEnd is None or SelectBegin is None:
return RestOfLine(sx, width, data, False)
(bRow, bCol) = SelectBegin
(eRow, eCol) = SelectEnd
if (eRow < bRow):
(bRow, bCol) = SelectEnd
(eRow, eCol) = SelectBegin
if (line < bRow or eRow < line):
return RestOfLine(sx, widt... | if SelectEnd is None or SelectBegin is None:
return RestOfLine(sx, width, data, False)
(bRow, bCol) = SelectBegin
(eRow, eCol) = SelectEnd
if (eRow < bRow):
(bRow, bCol) = SelectEnd
(eRow, eCol) = SelectBegin
if (line < bRow or eRow < line):
return RestOfLine(sx, widt... | 132 | 147 | 382 | 529 | # 12/14/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o 2.5 compatibility update.
#
def RestOfLine(sx, width, data, bool):
if len(data) == 0 and sx == 0:
return [('', bool)]
if sx >= len(data):
return []
return [(data[sx:sx+width], bool)]
def Selection(SelectBegin,SelectEnd, sx, width... | # 12/14/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o 2.5 compatibility update.
#
def RestOfLine(sx, width, data, bool):
if len(data) == 0 and sx == 0:
return [('', bool)]
if sx >= len(data):
return []
return [(data[sx:sx+width], bool)]
def Selection(SelectBegin,SelectEnd, sx, width... | |
42,298 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/filebrowsebutton.py | 447,448 | 446,454 | OnInit | DemoApp | 448,454 | 448,454 | class DemoApp(wx.App):
def OnInit(self):
FILL_FUNC_BODY | class DemoApp(wx.App):
def OnInit(self):
FILL_FUNC_BODY | wx.InitAllImageHandlers()
frame = DemoFrame(None)
frame.Show(True)
self.SetTopWindow(frame)
return True
| wx.InitAllImageHandlers()
frame = DemoFrame(None)
frame.Show(True)
self.SetTopWindow(frame)
return True
| 8 | 29 | 49 | 78 | #----------------------------------------------------------------------
# Name: wx.lib.filebrowsebutton
# Purpose: Composite controls that provide a Browse button next to
# either a wxTextCtrl or a wxComboBox. The Browse button
# launches a wxFileDialog and loads the result into th... | #----------------------------------------------------------------------
# Name: wx.lib.filebrowsebutton
# Purpose: Composite controls that provide a Browse button next to
# either a wxTextCtrl or a wxComboBox. The Browse button
# launches a wxFileDialog and loads the result into th... |
42,299 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/filebrowsebutton.py | 429,430 | 380,446 | historyCallBack | DemoFrame | 430,433 | 430,433 | class DemoFrame( wx.Frame ):
def __init__(self, parent):
wx.Frame.__init__(self, parent, -1, "File entry with browse", size=(500,260))
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
panel = wx.Panel (self,-1)
innerbox = wx.BoxSizer(wx.VERTICAL)
contro... | class DemoFrame( wx.Frame ):
def __init__(self, parent):
wx.Frame.__init__(self, parent, -1, "File entry with browse", size=(500,260))
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
panel = wx.Panel (self,-1)
innerbox = wx.BoxSizer(wx.VERTICAL)
contro... | keys=sorted(self.history)
return keys
| keys=sorted(self.history)
return keys
| 3 | 830 | 19 | 849 | #----------------------------------------------------------------------
# Name: wx.lib.filebrowsebutton
# Purpose: Composite controls that provide a Browse button next to
# either a wxTextCtrl or a wxComboBox. The Browse button
# launches a wxFileDialog and loads the result into th... | #----------------------------------------------------------------------
# Name: wx.lib.filebrowsebutton
# Purpose: Composite controls that provide a Browse button next to
# either a wxTextCtrl or a wxComboBox. The Browse button
# launches a wxFileDialog and loads the result into th... |
42,300 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/filebrowsebutton.py | 353,354 | 330,373 | OnBrowse | DirBrowseButton | 354,373 | 354,373 | class DirBrowseButton(FileBrowseButton):
def __init__(self, parent, id = -1,
pos = wx.DefaultPosition, size = wx.DefaultSize,
style = wx.TAB_TRAVERSAL,
labelText = 'Select a directory:',
buttonText = 'Browse',
toolTip = 'Type direc... | class DirBrowseButton(FileBrowseButton):
def __init__(self, parent, id = -1,
pos = wx.DefaultPosition, size = wx.DefaultSize,
style = wx.TAB_TRAVERSAL,
labelText = 'Select a directory:',
buttonText = 'Browse',
toolTip = 'Type direc... | style=0
if not self.newDirectory:
style |= wx.DD_DIR_MUST_EXIST
dialog = self.dialogClass(self,
message = self.dialogTitle,
defaultPath = self.startDirectory,
style = style)
... | style=0
if not self.newDirectory:
style |= wx.DD_DIR_MUST_EXIST
dialog = self.dialogClass(self,
message = self.dialogTitle,
defaultPath = self.startDirectory,
style = style)
... | 27 | 248 | 132 | 380 | #----------------------------------------------------------------------
# Name: wx.lib.filebrowsebutton
# Purpose: Composite controls that provide a Browse button next to
# either a wxTextCtrl or a wxComboBox. The Browse button
# launches a wxFileDialog and loads the result into th... | #----------------------------------------------------------------------
# Name: wx.lib.filebrowsebutton
# Purpose: Composite controls that provide a Browse button next to
# either a wxTextCtrl or a wxComboBox. The Browse button
# launches a wxFileDialog and loads the result into th... |
42,301 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/filebrowsebutton.py | 190,191 | 26,199 | SetLabel | FileBrowseButton | 192,199 | 191,199 | class FileBrowseButton(wx.Panel):
"""
A control to allow the user to type in a filename or browse with
the standard file dialog to select file
"""
def __init__ (self, parent, id= -1,
pos = wx.DefaultPosition,
size = wx.DefaultSize,
style = wx.TAB... | class FileBrowseButton(wx.Panel):
"""
A control to allow the user to type in a filename or browse with
the standard file dialog to select file
"""
def __init__ (self, parent, id= -1,
pos = wx.DefaultPosition,
size = wx.DefaultSize,
style = wx.TAB... | rvalue = self.label.SetLabel( value )
self.Refresh( True )
return rvalue
| """ Set the label's current text """
rvalue = self.label.SetLabel( value )
self.Refresh( True )
return rvalue
| 10 | 1,720 | 39 | 1,759 | #----------------------------------------------------------------------
# Name: wx.lib.filebrowsebutton
# Purpose: Composite controls that provide a Browse button next to
# either a wxTextCtrl or a wxComboBox. The Browse button
# launches a wxFileDialog and loads the result into th... | #----------------------------------------------------------------------
# Name: wx.lib.filebrowsebutton
# Purpose: Composite controls that provide a Browse button next to
# either a wxTextCtrl or a wxComboBox. The Browse button
# launches a wxFileDialog and loads the result into th... |
42,302 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/filebrowsebutton.py | 243,244 | 199,330 | createTextControl | FileBrowseButtonWithHistory | 245,258 | 244,258 | class FileBrowseButtonWithHistory( FileBrowseButton ):
"""
with following additions:
__init__(..., history=None)
history -- optional list of paths for initial history drop-down
(must be passed by name, not a positional argument)
If history is callable it will... | class FileBrowseButtonWithHistory( FileBrowseButton ):
"""
with following additions:
__init__(..., history=None)
history -- optional list of paths for initial history drop-down
(must be passed by name, not a positional argument)
If history is callable it will... | textControl = wx.ComboBox(self, -1, style = wx.CB_DROPDOWN )
textControl.SetToolTip( self.toolTip )
textControl.Bind(wx.EVT_SET_FOCUS, self.OnSetFocus)
if self.changeCallback:
textControl.Bind(wx.EVT_TEXT, self.OnChanged)
textControl.Bind(wx.EVT_COMBOBOX, self.OnC... | """Create the text control"""
textControl = wx.ComboBox(self, -1, style = wx.CB_DROPDOWN )
textControl.SetToolTip( self.toolTip )
textControl.Bind(wx.EVT_SET_FOCUS, self.OnSetFocus)
if self.changeCallback:
textControl.Bind(wx.EVT_TEXT, self.OnChanged)
text... | 28 | 1,034 | 169 | 1,203 | #----------------------------------------------------------------------
# Name: wx.lib.filebrowsebutton
# Purpose: Composite controls that provide a Browse button next to
# either a wxTextCtrl or a wxComboBox. The Browse button
# launches a wxFileDialog and loads the result into th... | #----------------------------------------------------------------------
# Name: wx.lib.filebrowsebutton
# Purpose: Composite controls that provide a Browse button next to
# either a wxTextCtrl or a wxComboBox. The Browse button
# launches a wxFileDialog and loads the result into th... |
42,303 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/filebrowsebutton.py | 322,323 | 319,324 | GetString | LocalEvent | 323,324 | 323,324 | class LocalEvent:
def __init__(self, string):
self._string=string
def GetString(self):
FILL_FUNC_BODY | class LocalEvent:
def __init__(self, string):
self._string=string
def GetString(self):
FILL_FUNC_BODY | return self._string
| return self._string
| 2 | 41 | 7 | 48 | #----------------------------------------------------------------------
# Name: wx.lib.filebrowsebutton
# Purpose: Composite controls that provide a Browse button next to
# either a wxTextCtrl or a wxComboBox. The Browse button
# launches a wxFileDialog and loads the result into th... | #----------------------------------------------------------------------
# Name: wx.lib.filebrowsebutton
# Purpose: Composite controls that provide a Browse button next to
# either a wxTextCtrl or a wxComboBox. The Browse button
# launches a wxFileDialog and loads the result into th... |
42,306 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/floatcanvas/FloatCanvas.py | 99,100 | 74,110 | GetCoords | _MouseEvent | 100,102 | 100,102 | class _MouseEvent(wx.PyCommandEvent):
"""
This event class takes a regular wxWindows mouse event as a parameter,
and wraps it so that there is access to all the original methods. This
is similar to subclassing, but you can't subclass a wxWindows event
The goal is to be able to it just like a regul... | class _MouseEvent(wx.PyCommandEvent):
"""
This event class takes a regular wxWindows mouse event as a parameter,
and wraps it so that there is access to all the original methods. This
is similar to subclassing, but you can't subclass a wxWindows event
The goal is to be able to it just like a regul... | return self.Coords
| return self.Coords
| 2 | 289 | 10 | 299 | #----------------------------------------------------------------------------
# Name: FloatCanvas.py
# Purpose:
#
# Author:
#
# Created:
# Version:
# Date:
# Licence:
# Tags: phoenix-port, unittest, documented, py3-port
#----------------------------------------------------------------------------
"""
Th... | #----------------------------------------------------------------------------
# Name: FloatCanvas.py
# Purpose:
#
# Author:
#
# Created:
# Version:
# Date:
# Licence:
# Tags: phoenix-port, unittest, documented, py3-port
#----------------------------------------------------------------------------
"""
Th... |
42,307 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/floatcanvas/NavCanvas.py | 144,145 | 50,163 | HideShowHack | NavCanvas | 145,153 | 145,153 | class NavCanvas(wx.Panel):
"""
:class:`~lib.floatcanvas.NavCanvas.NavCanvas` encloses a
:class:`~lib.floatcanvas.FloatCanvas.FloatCanvas` in a :class:`Panel` and
adds a Navigation toolbar.
"""
def __init__(self,
parent,
id = wx.ID_ANY,
size = ... | class NavCanvas(wx.Panel):
"""
:class:`~lib.floatcanvas.NavCanvas.NavCanvas` encloses a
:class:`~lib.floatcanvas.FloatCanvas.FloatCanvas` in a :class:`Panel` and
adds a Navigation toolbar.
"""
def __init__(self,
parent,
id = wx.ID_ANY,
size = ... | ##fixme: remove this when the bug is fixed!
"""
Hack to hide and show button on toolbar to get around OS-X bug on
wxPython2.8 on OS-X
"""
self.ZoomButton.Hide()
self.ZoomButton.Show()
| ##fixme: remove this when the bug is fixed!
"""
Hack to hide and show button on toolbar to get around OS-X bug on
wxPython2.8 on OS-X
"""
self.ZoomButton.Hide()
self.ZoomButton.Show()
| 29 | 1,278 | 82 | 1,360 | #----------------------------------------------------------------------------
# Name: NavCanvas.py
# Purpose: Combines FloatCanvas with Navigation controls
#
# Author:
#
# Created:
# Version:
# Date:
# Licence:
# Tags: phoenix-port, unittest, documented, py3-port
#----------------------------------... | #----------------------------------------------------------------------------
# Name: NavCanvas.py
# Purpose: Combines FloatCanvas with Navigation controls
#
# Author:
#
# Created:
# Version:
# Date:
# Licence:
# Tags: phoenix-port, unittest, documented, py3-port
#----------------------------------... |
42,308 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/floatcanvas/Utilities/GUI.py | 60,61 | 31,92 | OnMove | RubberBandBox | 61,77 | 61,77 | class RubberBandBox(GUIMode.GUIBase):
"""
Class to provide a GUI Mode that makes a rubber band box that can be drawn on a Window
"""
def __init__(self, CallBack, Tol=5):
"""
Default class constructor.
:param `CallBack`: is the method you want called when the mouse is
... | class RubberBandBox(GUIMode.GUIBase):
"""
Class to provide a GUI Mode that makes a rubber band box that can be drawn on a Window
"""
def __init__(self, CallBack, Tol=5):
"""
Default class constructor.
:param `CallBack`: is the method you want called when the mouse is
... | if self.Drawing:
x, y = self.StartPoint
Cornerx, Cornery = event.GetPosition()
w, h = ( Cornerx - x, Cornery - y)
if abs(w) > self.Tol and abs(h) > self.Tol:
# draw the RB box
dc = wx.ClientDC(self.Canvas)
dc.SetPen(... | if self.Drawing:
x, y = self.StartPoint
Cornerx, Cornery = event.GetPosition()
w, h = ( Cornerx - x, Cornery - y)
if abs(w) > self.Tol and abs(h) > self.Tol:
# draw the RB box
dc = wx.ClientDC(self.Canvas)
dc.SetPen(... | 53 | 400 | 263 | 663 | #----------------------------------------------------------------------------
# Name: GUI.py
# Purpose: Contains GUI related utilities for FloatCanvas
#
# Author:
#
# Created:
# Version:
# Date:
# Licence:
# Tags: phoenix-port, unittest, documented, py3-port
#---------------------------------------... | #----------------------------------------------------------------------------
# Name: GUI.py
# Purpose: Contains GUI related utilities for FloatCanvas
#
# Author:
#
# Created:
# Version:
# Date:
# Licence:
# Tags: phoenix-port, unittest, documented, py3-port
#---------------------------------------... |
42,309 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/foldmenu.py | 83,84 | 68,90 | click | FoldOutMenu | 84,90 | 84,90 | class FoldOutMenu(wx.BitmapButton):
def __init__(self,parent,id,bitmap,pos = wx.DefaultPosition,
size = wx.DefaultSize, style = wx.BU_AUTODRAW,
validator = wx.DefaultValidator, name = "button"):
wx.BitmapButton.__init__(self, parent, id, bitmap, pos, size, style,
... | class FoldOutMenu(wx.BitmapButton):
def __init__(self,parent,id,bitmap,pos = wx.DefaultPosition,
size = wx.DefaultSize, style = wx.BU_AUTODRAW,
validator = wx.DefaultValidator, name = "button"):
wx.BitmapButton.__init__(self, parent, id, bitmap, pos, size, style,
... | pos=self.GetPosition()
sz=self.GetSize()
pos.x=pos.x+sz.width
pos.y=pos.y+sz.height/2
self.popwin.Position(pos,sz)
self.popwin.Popup()
| pos=self.GetPosition()
sz=self.GetSize()
pos.x=pos.x+sz.width
pos.y=pos.y+sz.height/2
self.popwin.Position(pos,sz)
self.popwin.Popup()
| 6 | 206 | 79 | 285 | # 12/07/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o 2.5 Compatibility changes
#
import wx
from wx.lib.evtmgr import eventManager
class FoldOutWindow(wx.PopupWindow):
def __init__(self,parent,style=0):
wx.PopupWindow.__init__(self,parent,style)
self.SetAutoLayout(True)
self.sizer=w... | # 12/07/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o 2.5 Compatibility changes
#
import wx
from wx.lib.evtmgr import eventManager
class FoldOutWindow(wx.PopupWindow):
def __init__(self,parent,style=0):
wx.PopupWindow.__init__(self,parent,style)
self.SetAutoLayout(True)
self.sizer=w... |
42,310 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/foldmenu.py | 42,43 | 9,68 | OnBtnClick | FoldOutWindow | 43,52 | 43,52 | class FoldOutWindow(wx.PopupWindow):
def __init__(self,parent,style=0):
wx.PopupWindow.__init__(self,parent,style)
self.SetAutoLayout(True)
self.sizer=wx.BoxSizer(wx.HORIZONTAL)
self.SetSizer(self.sizer, deleteOld=False)
self.handlers={}
self.InitColors()
self... | class FoldOutWindow(wx.PopupWindow):
def __init__(self,parent,style=0):
wx.PopupWindow.__init__(self,parent,style)
self.SetAutoLayout(True)
self.sizer=wx.BoxSizer(wx.HORIZONTAL)
self.SetSizer(self.sizer, deleteOld=False)
self.handlers={}
self.InitColors()
self... | id=event.GetEventObject().GetId()
if id in self.handlers:
self.handlers[id](event)
self.Hide()
self.inWindow=False
event.Skip()
| id=event.GetEventObject().GetId()
if id in self.handlers:
self.handlers[id](event)
self.Hide()
self.inWindow=False
event.Skip()
| 9 | 502 | 67 | 569 | # 12/07/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o 2.5 Compatibility changes
#
import wx
from wx.lib.evtmgr import eventManager
class FoldOutWindow(wx.PopupWindow):
def __init__(self,parent,style=0):
wx.PopupWindow.__init__(self,parent,style)
self.SetAutoLayout(True)
self.sizer=w... | # 12/07/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o 2.5 Compatibility changes
#
import wx
from wx.lib.evtmgr import eventManager
class FoldOutWindow(wx.PopupWindow):
def __init__(self,parent,style=0):
wx.PopupWindow.__init__(self,parent,style)
self.SetAutoLayout(True)
self.sizer=w... |
42,313 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/imagebrowser.py | 807,808 | 761,818 | StripExt | FindFiles | 808,818 | 808,818 | class FindFiles:
def __init__(self, parent, dir, mask, with_dirs=True):
filelist = []
dirlist = [".."]
self.dir = dir
self.file = ""
mask = mask.upper()
pattern = self.MakeRegex(mask)
for i in os.listdir(dir):
if i == "." or i == "..":
... | class FindFiles:
def __init__(self, parent, dir, mask, with_dirs=True):
filelist = []
dirlist = [".."]
self.dir = dir
self.file = ""
mask = mask.upper()
pattern = self.MakeRegex(mask)
for i in os.listdir(dir):
if i == "." or i == "..":
... | fl_fld = os.path.splitext(file_nm)
fl_name = fl_fld[0]
ext = fl_fld[1]
return ext[1:]
#----------------------------------------------------------------------
# This part of the file was generated by C:\Python25\Scripts\img2py
# then edited slightly.
| fl_fld = os.path.splitext(file_nm)
fl_name = fl_fld[0]
ext = fl_fld[1]
return ext[1:]
#----------------------------------------------------------------------
# This part of the file was generated by C:\Python25\Scripts\img2py
# then edited slightly.
| 26 | 347 | 95 | 442 | #----------------------------------------------------------------------------
# Name: BrowseImage.py
# Purpose: Display and Select Image Files
#
# Original Author: Lorne White
#
# Version: 2.0
# Date: June 16, 2007
# Licence: wxWindows license
# Tags: phoenix-port
#---------... | #----------------------------------------------------------------------------
# Name: BrowseImage.py
# Purpose: Display and Select Image Files
#
# Original Author: Lorne White
#
# Version: 2.0
# Date: June 16, 2007
# Licence: wxWindows license
# Tags: phoenix-port
#---------... |
42,315 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/imagebrowser.py | 430,431 | 366,446 | SetBackgroundMode | ImagePanel | 431,433 | 431,433 | class ImagePanel(wx.Panel):
def __init__(self, parent, id=-1, pos=wx.DefaultPosition, size=wx.DefaultSize,
style=wx.NO_BORDER
):
wx.Panel.__init__(self, parent, id, pos, size, style=style)
vbox = wx.BoxSizer(wx.VERTICAL)
self.SetSizer(vbox)
self.vi... | class ImagePanel(wx.Panel):
def __init__(self, parent, id=-1, pos=wx.DefaultPosition, size=wx.DefaultSize,
style=wx.NO_BORDER
):
wx.Panel.__init__(self, parent, id, pos, size, style=style)
vbox = wx.BoxSizer(wx.VERTICAL)
self.SetSizer(vbox)
self.vi... | self.view.SetBackgroundMode(mode)
| self.view.SetBackgroundMode(mode)
| 1 | 1,176 | 15 | 1,191 | #----------------------------------------------------------------------------
# Name: BrowseImage.py
# Purpose: Display and Select Image Files
#
# Original Author: Lorne White
#
# Version: 2.0
# Date: June 16, 2007
# Licence: wxWindows license
# Tags: phoenix-port
#---------... | #----------------------------------------------------------------------------
# Name: BrowseImage.py
# Purpose: Display and Select Image Files
#
# Original Author: Lorne White
#
# Version: 2.0
# Date: June 16, 2007
# Licence: wxWindows license
# Tags: phoenix-port
#---------... |
42,316 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/imagebrowser.py | 270,271 | 170,366 | PaintBackground | ImageView | 271,292 | 271,292 | class ImageView(wx.Window):
def __init__(self, parent, id=-1, pos=wx.DefaultPosition, size=wx.DefaultSize,
style=wx.BORDER_SUNKEN
):
wx.Window.__init__(self, parent, id, pos, size, style=style)
self.image = None
self.check_bmp = None
self.check_dim... | class ImageView(wx.Window):
def __init__(self, parent, id=-1, pos=wx.DefaultPosition, size=wx.DefaultSize,
style=wx.BORDER_SUNKEN
):
wx.Window.__init__(self, parent, id, pos, size, style=style)
self.image = None
self.check_bmp = None
self.check_dim... | if painter is None:
return
if rect is None:
pos = self.GetPosition()
sz = self.GetSize()
else:
pos = rect.Position
sz = rect.Size
if type(painter)==wx.Brush:
dc.SetPen(wx.TRANSPARENT_PEN)
dc.SetBrush(pai... | if painter is None:
return
if rect is None:
pos = self.GetPosition()
sz = self.GetSize()
else:
pos = rect.Position
sz = rect.Size
if type(painter)==wx.Brush:
dc.SetPen(wx.TRANSPARENT_PEN)
dc.SetBrush(pai... | 36 | 1,756 | 273 | 2,029 | #----------------------------------------------------------------------------
# Name: BrowseImage.py
# Purpose: Display and Select Image Files
#
# Original Author: Lorne White
#
# Version: 2.0
# Date: June 16, 2007
# Licence: wxWindows license
# Tags: phoenix-port
#---------... | #----------------------------------------------------------------------------
# Name: BrowseImage.py
# Purpose: Display and Select Image Files
#
# Original Author: Lorne White
#
# Version: 2.0
# Date: June 16, 2007
# Licence: wxWindows license
# Tags: phoenix-port
#---------... |
42,317 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/imageutils.py | 54,55 | 1,164 | grayOut | 68,91 | 55,91 | #----------------------------------------------------------------------
# Name: wx.lib.imageutils
# Purpose: A collection of functions for simple image manipulations
#
# Author: Robb Shecter
#
# Created: 7-Nov-2002
# Copyright: (c) 2002 by
# Licence: wxWindows license
# Tags: phoenix-po... | #----------------------------------------------------------------------
# Name: wx.lib.imageutils
# Purpose: A collection of functions for simple image manipulations
#
# Author: Robb Shecter
#
# Created: 7-Nov-2002
# Copyright: (c) 2002 by
# Licence: wxWindows license
# Tags: phoenix-po... |
factor = 0.7 # 0 < f < 1. Higher is grayer.
if anImage.HasMask():
maskColor = (anImage.GetMaskRed(), anImage.GetMaskGreen(), anImage.GetMaskBlue())
else:
maskColor = None
if anImage.HasAlpha():
alpha = anImage.GetAlpha()
else:
alpha = None
data = anImage... | """
Convert the given image (in place) to a grayed-out
version, appropriate for a 'disabled' appearance.
:param wx.Image `anImage`: the image we want to convert to gray-scale.
:rtype: :class:`wx.Image`
:returns: The modified (greyed out) image.
.. note:: the image is converted in place, i... | 65 | 1,286 | 251 | 1,537 | #----------------------------------------------------------------------
# Name: wx.lib.imageutils
# Purpose: A collection of functions for simple image manipulations
#
# Author: Robb Shecter
#
# Created: 7-Nov-2002
# Copyright: (c) 2002 by
# Licence: wxWindows license
# Tags: phoenix-po... | #----------------------------------------------------------------------
# Name: wx.lib.imageutils
# Purpose: A collection of functions for simple image manipulations
#
# Author: Robb Shecter
#
# Created: 7-Nov-2002
# Copyright: (c) 2002 by
# Licence: wxWindows license
# Tags: phoenix-po... | |
42,318 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/itemspicker.py | 47,48 | 41,51 | GetItems | IpSelectionChanged | 48,51 | 48,51 | class IpSelectionChanged(wx.PyCommandEvent):
def __init__(self, id, items, object = None):
wx.PyCommandEvent.__init__(self, wxEVT_IP_SELECTION_CHANGED, id)
self.__items = items
self.SetEventObject(object)
def GetItems(self):
FILL_FUNC_BODY | class IpSelectionChanged(wx.PyCommandEvent):
def __init__(self, id, items, object = None):
wx.PyCommandEvent.__init__(self, wxEVT_IP_SELECTION_CHANGED, id)
self.__items = items
self.SetEventObject(object)
def GetItems(self):
FILL_FUNC_BODY | return self.__items
| return self.__items
| 2 | 92 | 11 | 103 | #----------------------------------------------------------------------------
# Name: itemspicker.py
# Purpose:
#
# Author: Daphna Rosenbom, Gitty Zinger, Moshe Cohavi and Yoav Glazner
#
# Created: Oct 3, 2010
# Version:
# Date:
# Licence: wxPython license
# Tags: phoenix-port
#---------... | #----------------------------------------------------------------------------
# Name: itemspicker.py
# Purpose:
#
# Author: Daphna Rosenbom, Gitty Zinger, Moshe Cohavi and Yoav Glazner
#
# Created: Oct 3, 2010
# Version:
# Date:
# Licence: wxPython license
# Tags: phoenix-port
#---------... |
42,319 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/itemspicker.py | 147,148 | 51,234 | _MoveItems | ItemsPicker | 148,156 | 148,156 | class ItemsPicker(wx.Panel):
"""
ItemsPicker is a widget that allows the user to form a set of picked
items out of a given list
"""
def __init__(self, parent, id=wx.ID_ANY, choices = [],
label = '', selectedLabel = '',
ipStyle = IP_DEFAULT_STYLE,
*a... | class ItemsPicker(wx.Panel):
"""
ItemsPicker is a widget that allows the user to form a set of picked
items out of a given list
"""
def __init__(self, parent, id=wx.ID_ANY, choices = [],
label = '', selectedLabel = '',
ipStyle = IP_DEFAULT_STYLE,
*a... | selections = source.GetSelections()
selectedItems = list(map(source.GetString, selections))
dest.SetItems(dest.GetItems() + selectedItems)
selections = set(selections)
source.SetItems([item for i, item in enumerate(source.GetItems())\
if i not in selections]... | selections = source.GetSelections()
selectedItems = list(map(source.GetString, selections))
dest.SetItems(dest.GetItems() + selectedItems)
selections = set(selections)
source.SetItems([item for i, item in enumerate(source.GetItems())\
if i not in selections]... | 25 | 1,847 | 104 | 1,951 | #----------------------------------------------------------------------------
# Name: itemspicker.py
# Purpose:
#
# Author: Daphna Rosenbom, Gitty Zinger, Moshe Cohavi and Yoav Glazner
#
# Created: Oct 3, 2010
# Version:
# Date:
# Licence: wxPython license
# Tags: phoenix-port
#---------... | #----------------------------------------------------------------------------
# Name: itemspicker.py
# Purpose:
#
# Author: Daphna Rosenbom, Gitty Zinger, Moshe Cohavi and Yoav Glazner
#
# Created: Oct 3, 2010
# Version:
# Date:
# Licence: wxPython license
# Tags: phoenix-port
#---------... |
42,321 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/layoutf.py | 259,260 | 258,265 | OnInit | TestApp | 260,265 | 260,265 | class TestApp(wx.App):
def OnInit(self):
FILL_FUNC_BODY | class TestApp(wx.App):
def OnInit(self):
FILL_FUNC_BODY | frame = TestLayoutf(None)
frame.Show(1)
self.SetTopWindow(frame)
return 1
| frame = TestLayoutf(None)
frame.Show(1)
self.SetTopWindow(frame)
return 1
| 7 | 28 | 39 | 67 | # 12/09/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o Updated for wx namespace
#
# 12/18/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o wxScrolledMessageDialog -> ScrolledMessageDialog
#
# Tags:
import re
import wx
class Layoutf(wx.LayoutConstraints):
"""
The class Layoutf(wxLayoutConstraints) ... | # 12/09/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o Updated for wx namespace
#
# 12/18/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o wxScrolledMessageDialog -> ScrolledMessageDialog
#
# Tags:
import re
import wx
class Layoutf(wx.LayoutConstraints):
"""
The class Layoutf(wxLayoutConstraints) ... |
42,322 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/layoutf.py | 249,250 | 209,258 | OnAbout | TestLayoutf | 250,255 | 250,255 | class TestLayoutf(wx.Frame):
def __init__(self, parent):
wx.Frame.__init__(self, parent, -1, 'Test Layout Constraints',
wx.DefaultPosition, (500, 300))
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
self.SetAutoLayout(True)
self.pa... | class TestLayoutf(wx.Frame):
def __init__(self, parent):
wx.Frame.__init__(self, parent, -1, 'Test Layout Constraints',
wx.DefaultPosition, (500, 300))
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
self.SetAutoLayout(True)
self.pa... | import wx.lib.dialogs
msg = wx.lib.dialogs.ScrolledMessageDialog(self, Layoutf.__doc__, "about")
msg.ShowModal()
msg.Destroy()
| import wx.lib.dialogs
msg = wx.lib.dialogs.ScrolledMessageDialog(self, Layoutf.__doc__, "about")
msg.ShowModal()
msg.Destroy()
| 9 | 807 | 58 | 865 | # 12/09/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o Updated for wx namespace
#
# 12/18/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o wxScrolledMessageDialog -> ScrolledMessageDialog
#
# Tags:
import re
import wx
class Layoutf(wx.LayoutConstraints):
"""
The class Layoutf(wxLayoutConstraints) ... | # 12/09/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o Updated for wx namespace
#
# 12/18/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o wxScrolledMessageDialog -> ScrolledMessageDialog
#
# Tags:
import re
import wx
class Layoutf(wx.LayoutConstraints):
"""
The class Layoutf(wxLayoutConstraints) ... |
42,323 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/masked/ctrl.py | 78,79 | 1,109 | Ctrl | 83,109 | 79,109 | #----------------------------------------------------------------------------
# Name: wx.lib.masked.ctrl.py
# Author: Will Sadkin
# Created: 09/24/2003
# Copyright: (c) 2003 by Will Sadkin
# License: wxWindows license
# Tags: py3-port
#----------------------------------------------------... | #----------------------------------------------------------------------------
# Name: wx.lib.masked.ctrl.py
# Author: Will Sadkin
# Created: 09/24/2003
# Copyright: (c) 2003 by Will Sadkin
# License: wxWindows license
# Tags: py3-port
#----------------------------------------------------... | if 'controlType' not in kwargs:
controlType = TEXT
else:
controlType = kwargs['controlType']
del kwargs['controlType']
if controlType == TEXT:
return TextCtrl(*args, **kwargs)
elif controlType == COMBO:
return ComboBox(*args, **kwargs)
elif controlType == I... | """
Actually a factory function providing a unifying
interface for generating masked controls.
"""
if 'controlType' not in kwargs:
controlType = TEXT
else:
controlType = kwargs['controlType']
del kwargs['controlType']
if controlType == TEXT:
return TextCtrl(*... | 58 | 688 | 214 | 902 | #----------------------------------------------------------------------------
# Name: wx.lib.masked.ctrl.py
# Author: Will Sadkin
# Created: 09/24/2003
# Copyright: (c) 2003 by Will Sadkin
# License: wxWindows license
# Tags: py3-port
#----------------------------------------------------... | #----------------------------------------------------------------------------
# Name: wx.lib.masked.ctrl.py
# Author: Will Sadkin
# Created: 09/24/2003
# Copyright: (c) 2003 by Will Sadkin
# License: wxWindows license
# Tags: py3-port
#----------------------------------------------------... | |
42,324 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/mixins/gridlabelrenderer.py | 244,245 | 243,250 | Draw | GridDefaultColLabelRenderer | 245,250 | 245,250 | class GridDefaultColLabelRenderer(GridLabelRenderer):
def Draw(self, grid, dc, rect, col):
FILL_FUNC_BODY | class GridDefaultColLabelRenderer(GridLabelRenderer):
def Draw(self, grid, dc, rect, col):
FILL_FUNC_BODY | hAlign, vAlign = grid.GetColLabelAlignment()
text = grid.GetColLabelValue(col)
self.DrawBorder(grid, dc, rect)
self.DrawText(grid, dc, rect, text, hAlign, vAlign)
| hAlign, vAlign = grid.GetColLabelAlignment()
text = grid.GetColLabelValue(col)
self.DrawBorder(grid, dc, rect)
self.DrawText(grid, dc, rect, text, hAlign, vAlign)
| 16 | 38 | 75 | 113 | #----------------------------------------------------------------------
# Name: wx.lib.mixins.gridlabelrenderer
# Purpose: A Grid mixin that enables renderers to be plugged in
# for drawing the row and col labels, similar to how the
# cell renderers work.
#
# Author: Robin Dunn... | #----------------------------------------------------------------------
# Name: wx.lib.mixins.gridlabelrenderer
# Purpose: A Grid mixin that enables renderers to be plugged in
# for drawing the row and col labels, similar to how the
# cell renderers work.
#
# Author: Robin Dunn... |
42,325 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/mixins/gridlabelrenderer.py | 251,252 | 250,256 | Draw | GridDefaultCornerLabelRenderer | 252,256 | 252,256 | class GridDefaultCornerLabelRenderer(GridLabelRenderer):
def Draw(self, grid, dc, rect, row_or_col):
FILL_FUNC_BODY | class GridDefaultCornerLabelRenderer(GridLabelRenderer):
def Draw(self, grid, dc, rect, row_or_col):
FILL_FUNC_BODY | self.DrawBorder(grid, dc, rect)
#---------------------------------------------------------------------------
| self.DrawBorder(grid, dc, rect)
#---------------------------------------------------------------------------
| 4 | 43 | 24 | 67 | #----------------------------------------------------------------------
# Name: wx.lib.mixins.gridlabelrenderer
# Purpose: A Grid mixin that enables renderers to be plugged in
# for drawing the row and col labels, similar to how the
# cell renderers work.
#
# Author: Robin Dunn... | #----------------------------------------------------------------------
# Name: wx.lib.mixins.gridlabelrenderer
# Purpose: A Grid mixin that enables renderers to be plugged in
# for drawing the row and col labels, similar to how the
# cell renderers work.
#
# Author: Robin Dunn... |
42,326 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/mixins/gridlabelrenderer.py | 237,238 | 236,243 | Draw | GridDefaultRowLabelRenderer | 238,243 | 238,243 | class GridDefaultRowLabelRenderer(GridLabelRenderer):
def Draw(self, grid, dc, rect, row):
FILL_FUNC_BODY | class GridDefaultRowLabelRenderer(GridLabelRenderer):
def Draw(self, grid, dc, rect, row):
FILL_FUNC_BODY | hAlign, vAlign = grid.GetRowLabelAlignment()
text = grid.GetRowLabelValue(row)
self.DrawBorder(grid, dc, rect)
self.DrawText(grid, dc, rect, text, hAlign, vAlign)
| hAlign, vAlign = grid.GetRowLabelAlignment()
text = grid.GetRowLabelValue(row)
self.DrawBorder(grid, dc, rect)
self.DrawText(grid, dc, rect, text, hAlign, vAlign)
| 16 | 38 | 75 | 113 | #----------------------------------------------------------------------
# Name: wx.lib.mixins.gridlabelrenderer
# Purpose: A Grid mixin that enables renderers to be plugged in
# for drawing the row and col labels, similar to how the
# cell renderers work.
#
# Author: Robin Dunn... | #----------------------------------------------------------------------
# Name: wx.lib.mixins.gridlabelrenderer
# Purpose: A Grid mixin that enables renderers to be plugged in
# for drawing the row and col labels, similar to how the
# cell renderers work.
#
# Author: Robin Dunn... |
42,327 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/mixins/gridlabelrenderer.py | 196,197 | 182,236 | DrawBorder | GridLabelRenderer | 201,218 | 197,218 | class GridLabelRenderer(object):
"""
Base class for row, col or corner label renderers.
"""
def Draw(self, grid, dc, rect, row_or_col):
"""
Override this method in derived classes to do the actual
drawing of the label.
"""
raise NotImplementedError
# These ... | class GridLabelRenderer(object):
"""
Base class for row, col or corner label renderers.
"""
def Draw(self, grid, dc, rect, row_or_col):
"""
Override this method in derived classes to do the actual
drawing of the label.
"""
raise NotImplementedError
# These ... | top = rect.top
bottom = rect.bottom
left = rect.left
right = rect.right
dc.SetPen(wx.Pen(wx.SystemSettings.GetColour(wx.SYS_COLOUR_3DSHADOW)))
dc.DrawLine(right, top, right, bottom)
dc.DrawLine(left, top, left, bottom)
dc.DrawLine(left, bottom, right, bott... | """
Draw a standard border around the label, to give a simple 3D
effect like the stock wx.grid.Grid labels do.
"""
top = rect.top
bottom = rect.bottom
left = rect.left
right = rect.right
dc.SetPen(wx.Pen(wx.SystemSettings.GetColour(wx.SYS_COLOUR_3D... | 67 | 359 | 246 | 605 | #----------------------------------------------------------------------
# Name: wx.lib.mixins.gridlabelrenderer
# Purpose: A Grid mixin that enables renderers to be plugged in
# for drawing the row and col labels, similar to how the
# cell renderers work.
#
# Author: Robin Dunn... | #----------------------------------------------------------------------
# Name: wx.lib.mixins.gridlabelrenderer
# Purpose: A Grid mixin that enables renderers to be plugged in
# for drawing the row and col labels, similar to how the
# cell renderers work.
#
# Author: Robin Dunn... |
42,328 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/mixins/gridlabelrenderer.py | 95,96 | 22,182 | _onPaintRowLabels | GridWithLabelRenderersMixin | 96,121 | 96,121 | class GridWithLabelRenderersMixin(object):
"""
This class can be mixed with wx.grid.Grid to add the ability to plugin
label renderer objects for the row, column and corner labels, similar to
how the cell renderers work in the main Grid class.
"""
def __init__(self):
self.GetGridRowLabelW... | class GridWithLabelRenderersMixin(object):
"""
This class can be mixed with wx.grid.Grid to add the ability to plugin
label renderer objects for the row, column and corner labels, similar to
how the cell renderers work in the main Grid class.
"""
def __init__(self):
self.GetGridRowLabelW... | window = evt.GetEventObject()
dc = wx.PaintDC(window)
gridWindow = self.GetGridWindow()
rows = self.CalcRowLabelsExposed(window.GetUpdateRegion(), gridWindow)
if rows == [-1]:
return
offset = self.GetGridWindowOffset(gridWindow)
x, y = self.CalcUnscr... | window = evt.GetEventObject()
dc = wx.PaintDC(window)
gridWindow = self.GetGridWindow()
rows = self.CalcRowLabelsExposed(window.GetUpdateRegion(), gridWindow)
if rows == [-1]:
return
offset = self.GetGridWindowOffset(gridWindow)
x, y = self.CalcUnscr... | 66 | 1,238 | 276 | 1,514 | #----------------------------------------------------------------------
# Name: wx.lib.mixins.gridlabelrenderer
# Purpose: A Grid mixin that enables renderers to be plugged in
# for drawing the row and col labels, similar to how the
# cell renderers work.
#
# Author: Robin Dunn... | #----------------------------------------------------------------------
# Name: wx.lib.mixins.gridlabelrenderer
# Purpose: A Grid mixin that enables renderers to be plugged in
# for drawing the row and col labels, similar to how the
# cell renderers work.
#
# Author: Robin Dunn... |
42,329 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/mixins/inspection.py | 179,180 | 173,185 | OnInit | InspectableApp | 180,185 | 180,185 | class InspectableApp(wx.App, InspectionMixin):
"""
A simple mix of :class:`App` and :class:`InspectionMixin` that can be used
stand-alone.
"""
def OnInit(self):
FILL_FUNC_BODY | class InspectableApp(wx.App, InspectionMixin):
"""
A simple mix of :class:`App` and :class:`InspectionMixin` that can be used
stand-alone.
"""
def OnInit(self):
FILL_FUNC_BODY | self.InitInspection()
return True
#---------------------------------------------------------------------------
| self.InitInspection()
return True
#---------------------------------------------------------------------------
| 4 | 74 | 24 | 98 | #----------------------------------------------------------------------------
# Name: wx.lib.mixins.inspection
# Purpose: A mix-in class that can add PyCrust-based inspection of the
# app's widgets and sizers.
#
# Author: Robin Dunn
#
# Created: 21-Nov-2006
# Copyright: (c) 2006-2020 ... | #----------------------------------------------------------------------------
# Name: wx.lib.mixins.inspection
# Purpose: A mix-in class that can add PyCrust-based inspection of the
# app's widgets and sizers.
#
# Author: Robin Dunn
#
# Created: 21-Nov-2006
# Copyright: (c) 2006-2020 ... |
42,330 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/mixins/inspection.py | 161,162 | 99,173 | ShowInspectionTool | InspectionMixin | 166,173 | 162,173 | class InspectionMixin(object):
"""
This class is intended to be used as a mix-in with the :class:`App`.
When used it will add the ability to popup a
:class:`~lib.inspection.InspectionFrame` window
where the widget under the mouse cursor will be selected in the tree and
loaded into the shell's na... | class InspectionMixin(object):
"""
This class is intended to be used as a mix-in with the :class:`App`.
When used it will add the ability to popup a
:class:`~lib.inspection.InspectionFrame` window
where the widget under the mouse cursor will be selected in the tree and
loaded into the shell's na... | # get the current widget under the mouse
wnd, pt = wx.FindWindowAtPointer()
InspectionTool().Show(wnd)
#---------------------------------------------------------------------------
| """
Show the Inspection tool, creating it if necessary, setting it
to display the widget under the cursor.
"""
# get the current widget under the mouse
wnd, pt = wx.FindWindowAtPointer()
InspectionTool().Show(wnd)
#-----------------------------------------------... | 14 | 852 | 50 | 902 | #----------------------------------------------------------------------------
# Name: wx.lib.mixins.inspection
# Purpose: A mix-in class that can add PyCrust-based inspection of the
# app's widgets and sizers.
#
# Author: Robin Dunn
#
# Created: 21-Nov-2006
# Copyright: (c) 2006-2020 ... | #----------------------------------------------------------------------------
# Name: wx.lib.mixins.inspection
# Purpose: A mix-in class that can add PyCrust-based inspection of the
# app's widgets and sizers.
#
# Author: Robin Dunn
#
# Created: 21-Nov-2006
# Copyright: (c) 2006-2020 ... |
42,334 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/multisash.py | 430,431 | 384,443 | OnSetFocus | MultiClient | 431,433 | 431,433 | class MultiClient(wx.Window):
def __init__(self,parent,childCls):
w,h = self.CalcSize(parent)
wx.Window.__init__(self,id = -1,parent = parent,
pos = (0,0),
size = (w,h),
style = wx.CLIP_CHILDREN | wx.SUNKEN_BORDER)
... | class MultiClient(wx.Window):
def __init__(self,parent,childCls):
w,h = self.CalcSize(parent)
wx.Window.__init__(self,id = -1,parent = parent,
pos = (0,0),
size = (w,h),
style = wx.CLIP_CHILDREN | wx.SUNKEN_BORDER)
... | self.Select()
| self.Select()
| 1 | 575 | 9 | 584 | #----------------------------------------------------------------------
# Name: multisash
# Purpose: Multi Sash control
#
# Author: Gerrit van Dyk
#
# Created: 2002/11/20
# Version: 0.1
# License: wxWindows license
#----------------------------------------------------------------------... | #----------------------------------------------------------------------
# Name: multisash
# Purpose: Multi Sash control
#
# Author: Gerrit van Dyk
#
# Created: 2002/11/20
# Version: 0.1
# License: wxWindows license
#----------------------------------------------------------------------... |
42,335 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/multisash.py | 666,667 | 637,694 | OnRelease | MultiCloser | 667,673 | 667,673 | class MultiCloser(wx.Window):
def __init__(self,parent):
x,y,w,h = self.CalcSizePos(parent)
wx.Window.__init__(self,id = -1,parent = parent,
pos = (x,y),
size = (w,h),
style = wx.CLIP_CHILDREN)
self.down = False
... | class MultiCloser(wx.Window):
def __init__(self,parent):
x,y,w,h = self.CalcSizePos(parent)
wx.Window.__init__(self,id = -1,parent = parent,
pos = (x,y),
size = (w,h),
style = wx.CLIP_CHILDREN)
self.down = False
... | if self.down and self.entered:
self.GetParent().DestroyLeaf()
else:
evt.Skip()
self.down = False
| if self.down and self.entered:
self.GetParent().DestroyLeaf()
else:
evt.Skip()
self.down = False
| 10 | 537 | 49 | 586 | #----------------------------------------------------------------------
# Name: multisash
# Purpose: Multi Sash control
#
# Author: Gerrit van Dyk
#
# Created: 2002/11/20
# Version: 0.1
# License: wxWindows license
#----------------------------------------------------------------------... | #----------------------------------------------------------------------
# Name: multisash
# Purpose: Multi Sash control
#
# Author: Gerrit van Dyk
#
# Created: 2002/11/20
# Version: 0.1
# License: wxWindows license
#----------------------------------------------------------------------... |
42,336 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/multisash.py | 553,554 | 533,637 | CalcSizePos | MultiCreator | 554,567 | 554,567 | class MultiCreator(wx.Window):
def __init__(self,parent,side):
self.side = side
x,y,w,h = self.CalcSizePos(parent)
wx.Window.__init__(self,id = -1,parent = parent,
pos = (x,y),
size = (w,h),
style = wx.CLIP_CHILDRE... | class MultiCreator(wx.Window):
def __init__(self,parent,side):
self.side = side
x,y,w,h = self.CalcSizePos(parent)
wx.Window.__init__(self,id = -1,parent = parent,
pos = (x,y),
size = (w,h),
style = wx.CLIP_CHILDRE... | pw,ph = parent.GetSize()
if self.side == MV_HOR:
x = 2
y = ph - SH_SIZE
w = CR_SIZE
h = SH_SIZE
else:
x = pw - SH_SIZE
y = 4 + SH_SIZE # Make provision for closer
w = SH_SIZE
h = CR_SIZE
... | pw,ph = parent.GetSize()
if self.side == MV_HOR:
x = 2
y = ph - SH_SIZE
w = CR_SIZE
h = SH_SIZE
else:
x = pw - SH_SIZE
y = 4 + SH_SIZE # Make provision for closer
w = SH_SIZE
h = CR_SIZE
... | 45 | 1,160 | 122 | 1,282 | #----------------------------------------------------------------------
# Name: multisash
# Purpose: Multi Sash control
#
# Author: Gerrit van Dyk
#
# Created: 2002/11/20
# Version: 0.1
# License: wxWindows license
#----------------------------------------------------------------------... | #----------------------------------------------------------------------
# Name: multisash
# Purpose: Multi Sash control
#
# Author: Gerrit van Dyk
#
# Created: 2002/11/20
# Version: 0.1
# License: wxWindows license
#----------------------------------------------------------------------... |
42,337 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/multisash.py | 63,64 | 33,79 | SetSaveData | MultiSash | 64,79 | 64,79 | class MultiSash(wx.Window):
def __init__(self, *_args,**_kwargs):
wx.Window.__init__(self, *_args, **_kwargs)
self._defChild = EmptyChild
self.child = MultiSplit(self,self,(0,0),self.GetSize())
self.Bind(wx.EVT_SIZE,self.OnMultiSize)
def SetDefaultChildClass(self,childCls):
... | class MultiSash(wx.Window):
def __init__(self, *_args,**_kwargs):
wx.Window.__init__(self, *_args, **_kwargs)
self._defChild = EmptyChild
self.child = MultiSplit(self,self,(0,0),self.GetSize())
self.Bind(wx.EVT_SIZE,self.OnMultiSize)
def SetDefaultChildClass(self,childCls):
... | mod = data['_defChild_mod']
dChild = mod + '.' + data['_defChild_class']
six.exec_('import %s' % mod)
self._defChild = eval(dChild)
old = self.child
self.child = MultiSplit(self,self,wx.Point(0,0),self.GetSize())
self.child.SetSaveData(data['child'])
old.D... | mod = data['_defChild_mod']
dChild = mod + '.' + data['_defChild_class']
six.exec_('import %s' % mod)
self._defChild = eval(dChild)
old = self.child
self.child = MultiSplit(self,self,wx.Point(0,0),self.GetSize())
self.child.SetSaveData(data['child'])
old.D... | 28 | 327 | 155 | 482 | #----------------------------------------------------------------------
# Name: multisash
# Purpose: Multi Sash control
#
# Author: Gerrit van Dyk
#
# Created: 2002/11/20
# Version: 0.1
# License: wxWindows license
#----------------------------------------------------------------------... | #----------------------------------------------------------------------
# Name: multisash
# Purpose: Multi Sash control
#
# Author: Gerrit van Dyk
#
# Created: 2002/11/20
# Version: 0.1
# License: wxWindows license
#----------------------------------------------------------------------... |
42,338 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/multisash.py | 466,467 | 443,533 | CalcSizePos | MultiSizer | 467,480 | 467,480 | class MultiSizer(wx.Window):
def __init__(self,parent,side):
self.side = side
x,y,w,h = self.CalcSizePos(parent)
wx.Window.__init__(self,id = -1,parent = parent,
pos = (x,y),
size = (w,h),
style = wx.CLIP_CHILDREN)... | class MultiSizer(wx.Window):
def __init__(self,parent,side):
self.side = side
x,y,w,h = self.CalcSizePos(parent)
wx.Window.__init__(self,id = -1,parent = parent,
pos = (x,y),
size = (w,h),
style = wx.CLIP_CHILDREN)... | pw,ph = parent.GetSize()
if self.side == MV_HOR:
x = CR_SIZE + 2
y = ph - SH_SIZE
w = pw - CR_SIZE - SH_SIZE - 2
h = SH_SIZE
else:
x = pw - SH_SIZE
y = CR_SIZE + 2 + SH_SIZE
w = SH_SIZE
h = ph - CR_SI... | pw,ph = parent.GetSize()
if self.side == MV_HOR:
x = CR_SIZE + 2
y = ph - SH_SIZE
w = pw - CR_SIZE - SH_SIZE - 2
h = SH_SIZE
else:
x = pw - SH_SIZE
y = CR_SIZE + 2 + SH_SIZE
w = SH_SIZE
h = ph - CR_SI... | 61 | 931 | 152 | 1,083 | #----------------------------------------------------------------------
# Name: multisash
# Purpose: Multi Sash control
#
# Author: Gerrit van Dyk
#
# Created: 2002/11/20
# Version: 0.1
# License: wxWindows license
#----------------------------------------------------------------------... | #----------------------------------------------------------------------
# Name: multisash
# Purpose: Multi Sash control
#
# Author: Gerrit van Dyk
#
# Created: 2002/11/20
# Version: 0.1
# License: wxWindows license
#----------------------------------------------------------------------... |
42,340 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/multisash.py | 309,310 | 291,384 | GetSaveData | MultiViewLeaf | 310,327 | 310,327 | class MultiViewLeaf(wx.Window):
def __init__(self,multiView,parent,pos,size):
wx.Window.__init__(self,id = -1,parent = parent,pos = pos,size = size,
style = wx.CLIP_CHILDREN)
self.multiView = multiView
self.sizerHor = MultiSizer(self,MV_HOR)
self.sizerVer =... | class MultiViewLeaf(wx.Window):
def __init__(self,multiView,parent,pos,size):
wx.Window.__init__(self,id = -1,parent = parent,pos = pos,size = size,
style = wx.CLIP_CHILDREN)
self.multiView = multiView
self.sizerHor = MultiSizer(self,MV_HOR)
self.sizerVer =... | saveData = {}
saveData['detailClass_class'] = self.detail.child.__class__.__name__
saveData['detailClass_mod'] = self.detail.child.__module__
if hasattr(self.detail.child,'GetSaveData'):
attr = getattr(self.detail.child,'GetSaveData')
if callable(attr):
... | saveData = {}
saveData['detailClass_class'] = self.detail.child.__class__.__name__
saveData['detailClass_mod'] = self.detail.child.__module__
if hasattr(self.detail.child,'GetSaveData'):
attr = getattr(self.detail.child,'GetSaveData')
if callable(attr):
... | 44 | 795 | 201 | 996 | #----------------------------------------------------------------------
# Name: multisash
# Purpose: Multi Sash control
#
# Author: Gerrit van Dyk
#
# Created: 2002/11/20
# Version: 0.1
# License: wxWindows license
#----------------------------------------------------------------------... | #----------------------------------------------------------------------
# Name: multisash
# Purpose: Multi Sash control
#
# Author: Gerrit van Dyk
#
# Created: 2002/11/20
# Version: 0.1
# License: wxWindows license
#----------------------------------------------------------------------... |
42,342 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/newevent.py | 203,204 | 176,223 | on_cmd_click | Frame | 204,208 | 204,208 | class Frame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1, "MOO")
sizer = wx.BoxSizer(wx.VERTICAL)
self.Bind(EVT_MOO, self.on_moo)
b = wx.Button(self, -1, "Generate MOO")
sizer.Add(b, 1, wx.EXPAND)
b.Bind(wx.EVT_BUTTON... | class Frame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1, "MOO")
sizer = wx.BoxSizer(wx.VERTICAL)
self.Bind(EVT_MOO, self.on_moo)
b = wx.Button(self, -1, "Generate MOO")
sizer.Add(b, 1, wx.EXPAND)
b.Bind(wx.EVT_BUTTON... | t = threading.Thread(target=cmd_thr, args=(self, e.GetId()))
t.setDaemon(True)
t.start()
| t = threading.Thread(target=cmd_thr, args=(self, e.GetId()))
t.setDaemon(True)
t.start()
| 7 | 612 | 46 | 658 | #---------------------------------------------------------------------------
# Name: newevent.py
# Purpose: Easy generation of new events classes and binder objects.
#
# Author: Miki Tebeka <miki.tebeka@gmail.com>
#
# Created: 18-Sept-2006
# Copyright: (c) 2006-2020 by Total Control Software
# Lic... | #---------------------------------------------------------------------------
# Name: newevent.py
# Purpose: Easy generation of new events classes and binder objects.
#
# Author: Miki Tebeka <miki.tebeka@gmail.com>
#
# Created: 18-Sept-2006
# Copyright: (c) 2006-2020 by Total Control Software
# Lic... |
42,343 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/nvdlg.py | 86,87 | 31,106 | destroyFields | SimpleNameValueDialog | 87,93 | 87,93 | class SimpleNameValueDialog(wx.Dialog):
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.DEFAULT_DIALOG_STYLE,
fields=[], initialValues=None,
captionTitle="", captionDescr=""):
wx.Dialog.__init__(self, parent... | class SimpleNameValueDialog(wx.Dialog):
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.DEFAULT_DIALOG_STYLE,
fields=[], initialValues=None,
captionTitle="", captionDescr=""):
wx.Dialog.__init__(self, parent... | for name, widgets in self._fields.items():
for w in widgets:
w.Destroy()
del self.__dict__[name]
| for name, widgets in self._fields.items():
for w in widgets:
w.Destroy()
del self.__dict__[name]
| 12 | 903 | 47 | 950 | #----------------------------------------------------------------------
# Name: wx.lib.nvdlg
# Purpose: Dialog for editing name/value pairs
#
# Author: Robin Dunn
#
# Created: 30-Nov-2009
# Copyright: (c) 2009-2020 by Total Control Software
# Licence: wxWindows license
# Tags: phoenix-p... | #----------------------------------------------------------------------
# Name: wx.lib.nvdlg
# Purpose: Dialog for editing name/value pairs
#
# Author: Robin Dunn
#
# Created: 30-Nov-2009
# Copyright: (c) 2009-2020 by Total Control Software
# Licence: wxWindows license
# Tags: phoenix-p... |
42,344 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/nvdlg.py | 128,129 | 106,137 | TransferToWindow | _TransferValidator | 129,137 | 129,137 | class _TransferValidator(wx.PyValidator):
"""
This validator is used to transfer values to/from the widgets and
attributes of the dialog.
"""
def __init__(self, name):
wx.PyValidator.__init__(self)
self.name = name
def Clone(self):
return _TransferValidator(self.name)
... | class _TransferValidator(wx.PyValidator):
"""
This validator is used to transfer values to/from the widgets and
attributes of the dialog.
"""
def __init__(self, name):
wx.PyValidator.__init__(self)
self.name = name
def Clone(self):
return _TransferValidator(self.name)
... | dlg = self.Window.Parent
value = getattr(dlg, self.name)
dlg._fields[self.name][1].SetValue(value)
return True
| dlg = self.Window.Parent
value = getattr(dlg, self.name)
dlg._fields[self.name][1].SetValue(value)
return True
| 10 | 183 | 58 | 241 | #----------------------------------------------------------------------
# Name: wx.lib.nvdlg
# Purpose: Dialog for editing name/value pairs
#
# Author: Robin Dunn
#
# Created: 30-Nov-2009
# Copyright: (c) 2009-2020 by Total Control Software
# Licence: wxWindows license
# Tags: phoenix-p... | #----------------------------------------------------------------------
# Name: wx.lib.nvdlg
# Purpose: Dialog for editing name/value pairs
#
# Author: Robin Dunn
#
# Created: 30-Nov-2009
# Copyright: (c) 2009-2020 by Total Control Software
# Licence: wxWindows license
# Tags: phoenix-p... |
42,346 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/ogl/basic.py | 3544,3545 | 3529,3558 | GetPerimeterPoint | CircleShape | 3555,3558 | 3545,3558 | class CircleShape(EllipseShape):
"""
The :class:`CircleShape` class is an :class:`EllipseShape` whose width
and height are the same.
"""
def __init__(self, diameter):
"""
Default class constructor
:param `diameter`: the diameter
"""
EllipseShape.__init__(sel... | class CircleShape(EllipseShape):
"""
The :class:`CircleShape` class is an :class:`EllipseShape` whose width
and height are the same.
"""
def __init__(self, diameter):
"""
Default class constructor
:param `diameter`: the diameter
"""
EllipseShape.__init__(sel... | return FindEndForCircle(self._width / 2.0, self._xpos, self._ypos, x2, y2)
| """
Get the perimeter point.
:param `x1`: ???
:param `y1`: ???
:param `x2`: ???
:param `y2`: ???
:returns: ???
"""
return FindEndForCircle(self._width / 2.0, self._xpos, self._ypos, x2, y2)
| 8 | 215 | 39 | 254 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... |
42,347 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/ogl/basic.py | 3884,3885 | 3838,3927 | OnErase | ControlPoint | 3886,3889 | 3885,3889 | class ControlPoint(RectangleShape):
"""The :class:`wx.ControlPoint` class."""
def __init__(self, theCanvas, object, size, the_xoffset, the_yoffset, the_type):
"""
Default class constructor
:param `theCanvas`: a :class:`~lib.ogl.Canvas`
:param `object`: the shape, instance of :cl... | class ControlPoint(RectangleShape):
"""The :class:`wx.ControlPoint` class."""
def __init__(self, theCanvas, object, size, the_xoffset, the_yoffset, the_type):
"""
Default class constructor
:param `theCanvas`: a :class:`~lib.ogl.Canvas`
:param `object`: the shape, instance of :cl... | RectangleShape.OnErase(self, dc)
# Implement resizing of canvas object
| """The erase handler."""
RectangleShape.OnErase(self, dc)
# Implement resizing of canvas object
| 8 | 889 | 30 | 919 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... |
42,348 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/ogl/basic.py | 3469,3470 | 3367,3529 | GetAttachmentPosition | EllipseShape | 3479,3529 | 3470,3529 | class EllipseShape(Shape):
"""
The :class:`EllipseShape` class behaves similarly to the
:class`RectangleShape` but is elliptical.
"""
def __init__(self, w, h):
"""
Default class constructor
:param `w`: the width
:param `h`: the height
"""
Shape.__in... | class EllipseShape(Shape):
"""
The :class:`EllipseShape` class behaves similarly to the
:class`RectangleShape` but is elliptical.
"""
def __init__(self, w, h):
"""
Default class constructor
:param `w`: the width
:param `h`: the height
"""
Shape.__in... | if self._attachmentMode == ATTACHMENT_MODE_BRANCHING:
return Shape.GetAttachmentPosition(self, attachment, nth, no_arcs, line)
if self._attachmentMode != ATTACHMENT_MODE_NONE:
top = self._ypos + self._height / 2.0
bottom = self._ypos - self._height / 2.0
... | """
Get attachment position.
:param `attachment`: the attachment ???
:param `nth`: get nth attachment ???
:param `no_arcs`: ???
:param `line`: ???
"""
if self._attachmentMode == ATTACHMENT_MODE_BRANCHING:
return Shape.GetAttachmentPosition(se... | 252 | 987 | 788 | 1,775 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... |
42,349 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/ogl/basic.py | 3975,3976 | 3927,3987 | OnDragLeft | PolygonControlPoint | 3977,3979 | 3976,3979 | class PolygonControlPoint(ControlPoint):
"""The :class:`PolygonControlPoint` class."""
def __init__(self, theCanvas, object, size, vertex, the_xoffset, the_yoffset):
"""
Default class constructor
:param `theCanvas`: a :class:`~lib.ogl.Canvas`
:param `object`: the shape, instance... | class PolygonControlPoint(ControlPoint):
"""The :class:`PolygonControlPoint` class."""
def __init__(self, theCanvas, object, size, vertex, the_xoffset, the_yoffset):
"""
Default class constructor
:param `theCanvas`: a :class:`~lib.ogl.Canvas`
:param `object`: the shape, instance... | self._shape.GetEventHandler().OnSizingDragLeft(self, draw, x, y, keys, attachment)
| """The drag left handler."""
self._shape.GetEventHandler().OnSizingDragLeft(self, draw, x, y, keys, attachment)
| 6 | 725 | 31 | 756 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... |
42,351 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/ogl/basic.py | 2831,2832 | 2730,2850 | SetWidth | RectangleShape | 2838,2840 | 2832,2840 | class RectangleShape(Shape):
"""
The :class:`wx.RectangleShape` class has rounded or square corners.
"""
def __init__(self, w = 0.0, h = 0.0):
"""
Default class constructor
:param float `w`: the width
:param float `h`: the height
"""
Shape.__init__(self)... | class RectangleShape(Shape):
"""
The :class:`wx.RectangleShape` class has rounded or square corners.
"""
def __init__(self, w = 0.0, h = 0.0):
"""
Default class constructor
:param float `w`: the width
:param float `h`: the height
"""
Shape.__init__(self)... | self._width = w
| """
Set the width.
:param `w`: width to be set
"""
self._width = w
| 3 | 1,054 | 10 | 1,064 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... |
42,353 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/ogl/basic.py | 171,172 | 105,302 | OnDrawBranches | ShapeEvtHandler | 173,176 | 172,176 | class ShapeEvtHandler(object):
"""The :class:`ShapeEvtHandler` class."""
def __init__(self, prev = None, shape = None):
"""
Default class constructor.
:param `pref`: the previous event handler, an instance of
:class:`ShapeEvtHandler` ???
:param `shape`: the shape, an in... | class ShapeEvtHandler(object):
"""The :class:`ShapeEvtHandler` class."""
def __init__(self, prev = None, shape = None):
"""
Default class constructor.
:param `pref`: the previous event handler, an instance of
:class:`ShapeEvtHandler` ???
:param `shape`: the shape, an in... | if self._previousHandler:
self._previousHandler.OnDrawBranches(dc, erase = erase)
| """The draw branches handler."""
if self._previousHandler:
self._previousHandler.OnDrawBranches(dc, erase = erase)
| 6 | 1,909 | 33 | 1,942 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... |
42,354 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/ogl/basic.py | 3734,3735 | 3578,3838 | GetActualPen | ShapeRegion | 3743,3753 | 3735,3753 | class ShapeRegion(object):
"""The :class:`ShapeRegion` class."""
def __init__(self, region = None):
"""
Default class constructor
:param `region`: a parent region or None???
"""
if region:
self._regionText = region._regionText
self._regionName = ... | class ShapeRegion(object):
"""The :class:`ShapeRegion` class."""
def __init__(self, region = None):
"""
Default class constructor
:param `region`: a parent region or None???
"""
if region:
self._regionText = region._regionText
self._regionName = ... | if self._actualPenObject:
return self._actualPenObject
if not self._penColour:
return None
if self._penColour=="Invisible":
return None
self._actualPenObject = wx.Pen(self._penColour, 1, self._penStyle)
return self._actualPenObject
| """
Get actual pen.
:note: Returns NULL if the pen is invisible
(different to pen being transparent; indicates that
region boundary should not be drawn.)
"""
if self._actualPenObject:
return self._actualPenObject
if not self._penColour:
... | 20 | 1,825 | 99 | 1,924 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... |
42,355 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/ogl/basic.py | 73,74 | 50,105 | SetX | ShapeTextLine | 80,82 | 74,82 | class ShapeTextLine(object):
"""The :class:`ShapeTextLine` class."""
def __init__(self, the_x, the_y, the_line):
"""
Default class constructor.
:param int `the_x`: the x position
:param int `the_y`: the y position
:param str `the_line`: the text
"""
self... | class ShapeTextLine(object):
"""The :class:`ShapeTextLine` class."""
def __init__(self, the_x, the_y, the_line):
"""
Default class constructor.
:param int `the_x`: the x position
:param int `the_y`: the y position
:param str `the_line`: the text
"""
self... | self._x = x
| """
Set the x position.
:param int `x`: the x position
"""
self._x = x
| 3 | 330 | 10 | 340 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: basic.py
# Purpose: The basic OGL shapes
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# ... |
42,356 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/ogl/bmpshape.py | 62,63 | 19,87 | SetBitmap | BitmapShape | 72,76 | 63,76 | class BitmapShape(RectangleShape):
"""The :class:`wx.BitmapShape` class draws a bitmap (non-resizable)."""
def __init__(self):
"""
Default class constructor.
"""
RectangleShape.__init__(self, 100, 50)
self._filename = ""
def OnDraw(self, dc):
"""The draw hand... | class BitmapShape(RectangleShape):
"""The :class:`wx.BitmapShape` class draws a bitmap (non-resizable)."""
def __init__(self):
"""
Default class constructor.
"""
RectangleShape.__init__(self, 100, 50)
self._filename = ""
def OnDraw(self, dc):
"""The draw hand... | self._bitmap = bitmap
if self._bitmap.IsOk():
self.SetSize(self._bitmap.GetWidth(), self._bitmap.GetHeight())
| """Set the associated bitmap.
:param `bitmap`: a :class:`wx.Bitmap` instance
:note: You can delete the bitmap from the calling application, since
reference counting will take care of holding on to the internal bitmap
data.
"""
self._bitmap = bitmap
if... | 7 | 516 | 48 | 564 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: bmpshape.py
# Purpose: Bitmap shape
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# Licen... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: bmpshape.py
# Purpose: Bitmap shape
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# Licen... |
42,359 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/ogl/composit.py | 877,878 | 858,940 | OnEndDragLeft | DivisionControlPoint | 878,940 | 878,940 | class DivisionControlPoint(ControlPoint):
def __init__(self, the_canvas, object, size, the_xoffset, the_yoffset, the_type):
ControlPoint.__init__(self, the_canvas, object, size, the_xoffset, the_yoffset, the_type)
self.SetEraseObject(False)
# Implement resizing of canvas object
def OnDragLe... | class DivisionControlPoint(ControlPoint):
def __init__(self, the_canvas, object, size, the_xoffset, the_yoffset, the_type):
ControlPoint.__init__(self, the_canvas, object, size, the_xoffset, the_yoffset, the_type)
self.SetEraseObject(False)
# Implement resizing of canvas object
def OnDragLe... | ControlPoint.OnEndDragLeft(self, x, y, keys, attachment)
dc = wx.MemoryDC()
dc.SelectObject(self.GetCanvas().GetBuffer())
self.GetCanvas().PrepareDC(dc)
division = self._shape
divisionParent = division.GetParent()
# Need to check it's within the bounds of the p... | ControlPoint.OnEndDragLeft(self, x, y, keys, attachment)
dc = wx.MemoryDC()
dc.SelectObject(self.GetCanvas().GetBuffer())
self.GetCanvas().PrepareDC(dc)
division = self._shape
divisionParent = division.GetParent()
# Need to check it's within the bounds of the p... | 243 | 276 | 857 | 1,133 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: composit.py
# Purpose: Composite class
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# Li... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: composit.py
# Purpose: Composite class
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# Li... |
42,361 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/ogl/composit.py | 967,968 | 950,980 | OnMenu | PopupDivisionMenu | 968,980 | 968,980 | class PopupDivisionMenu(wx.Menu):
def __init__(self):
wx.Menu.__init__(self)
self.Append(DIVISION_MENU_SPLIT_HORIZONTALLY,"Split horizontally")
self.Append(DIVISION_MENU_SPLIT_VERTICALLY,"Split vertically")
self.AppendSeparator()
self.Append(DIVISION_MENU_EDIT_LEFT_EDGE,"Edit... | class PopupDivisionMenu(wx.Menu):
def __init__(self):
wx.Menu.__init__(self)
self.Append(DIVISION_MENU_SPLIT_HORIZONTALLY,"Split horizontally")
self.Append(DIVISION_MENU_SPLIT_VERTICALLY,"Split vertically")
self.AppendSeparator()
self.Append(DIVISION_MENU_EDIT_LEFT_EDGE,"Edit... | division = self.GetClientData()
if event.GetId() == DIVISION_MENU_SPLIT_HORIZONTALLY:
division.Divide(wx.HORIZONTAL)
elif event.GetId() == DIVISION_MENU_SPLIT_VERTICALLY:
division.Divide(wx.VERTICAL)
elif event.GetId() == DIVISION_MENU_EDIT_LEFT_EDGE:
... | division = self.GetClientData()
if event.GetId() == DIVISION_MENU_SPLIT_HORIZONTALLY:
division.Divide(wx.HORIZONTAL)
elif event.GetId() == DIVISION_MENU_SPLIT_VERTICALLY:
division.Divide(wx.VERTICAL)
elif event.GetId() == DIVISION_MENU_EDIT_LEFT_EDGE:
... | 23 | 271 | 198 | 469 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: composit.py
# Purpose: Composite class
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# Li... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: composit.py
# Purpose: Composite class
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# Li... |
42,362 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/ogl/diagram.py | 224,225 | 21,231 | GetShapeList | Diagram | 226,228 | 225,228 | class Diagram(object):
"""
The :class:`Diagram` encapsulates an entire diagram, with methods for
drawing. A diagram has an associated :class:`ShapeCanvas`.
"""
def __init__(self):
"""
Default class constructor.
"""
self._diagramCanvas = None
self._quickEditMo... | class Diagram(object):
"""
The :class:`Diagram` encapsulates an entire diagram, with methods for
drawing. A diagram has an associated :class:`ShapeCanvas`.
"""
def __init__(self):
"""
Default class constructor.
"""
self._diagramCanvas = None
self._quickEditMo... | return self._shapeList
| """Return the internal shape list."""
return self._shapeList
| 2 | 1,740 | 10 | 1,750 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: diagram.py
# Purpose: Diagram class
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# Licen... | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Name: diagram.py
# Purpose: Diagram class
#
# Author: Pierre Hjälm (from C++ original by Julian Smart)
#
# Created: 2004-05-08
# Copyright: (c) 2004 Pierre Hjälm - 1998 Julian Smart
# Licen... |
42,369 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/plot/utils.py | 176,178 | 119,246 | wrapper | TempStyle | 178,196 | 178,196 | class TempStyle(object):
"""
Decorator / Context Manager to revert pen or brush changes.
Will revert pen, brush, or both to their previous values after a method
call or block finish.
:param which: The item to save and revert after execution. Can be
one of ``{'both', 'pen', 'brush... | class TempStyle(object):
"""
Decorator / Context Manager to revert pen or brush changes.
Will revert pen, brush, or both to their previous values after a method
call or block finish.
:param which: The item to save and revert after execution. Can be
one of ``{'both', 'pen', 'brush... | # fake the 'with' block. This solves:
# 1. plots only being shown on 2nd menu selection in demo
# 2. self.dc compalaining about not having a super called when
# trying to get or set the pen/brush values in __enter__ and
# __exit__:
# ... | # fake the 'with' block. This solves:
# 1. plots only being shown on 2nd menu selection in demo
# 2. self.dc compalaining about not having a super called when
# trying to get or set the pen/brush values in __enter__ and
# __exit__:
# ... | 88 | 1,051 | 233 | 1,284 | # -*- coding: utf-8 -*-
# pylint: disable=E1101, C0330, C0103
# E1101: Module X has no Y member
# C0330: Wrong continued indentation
# C0103: Invalid attribute/variable/method name
"""
utils.py
=========
This is a collection of utilities used by the :mod:`wx.lib.plot` package.
"""
__docformat__ = "restructuredt... | # -*- coding: utf-8 -*-
# pylint: disable=E1101, C0330, C0103
# E1101: Module X has no Y member
# C0330: Wrong continued indentation
# C0103: Invalid attribute/variable/method name
"""
utils.py
=========
This is a collection of utilities used by the :mod:`wx.lib.plot` package.
"""
__docformat__ = "restructuredt... |
42,370 | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix | /home/hieuvd/dung_repo/raw/stars_02/wxWidgets_Phoenix/Phoenix/wx/lib/popupctl.py | 74,75 | 30,104 | OnMotion | PopButton | 75,91 | 75,91 | class PopButton(wx.Control):
def __init__(self,*_args,**_kwargs):
wx.Control.__init__(self, *_args, **_kwargs)
self.up = True
self.didDown = False
self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
self.Bind(wx.EVT_LEFT_UP, self.OnLeftUp)
self.Bind(wx.EVT_MOTION, self.OnM... | class PopButton(wx.Control):
def __init__(self,*_args,**_kwargs):
wx.Control.__init__(self, *_args, **_kwargs)
self.up = True
self.didDown = False
self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
self.Bind(wx.EVT_LEFT_UP, self.OnLeftUp)
self.Bind(wx.EVT_MOTION, self.OnM... | if not self.IsEnabled():
return
if event.LeftIsDown():
if self.didDown:
x,y = event.GetPosition()
w,h = self.GetClientSize()
if self.up and x<w and x>=0 and y<h and y>=0:
self.up = False
self.... | if not self.IsEnabled():
return
if event.LeftIsDown():
if self.didDown:
x,y = event.GetPosition()
w,h = self.GetClientSize()
if self.up and x<w and x>=0 and y<h and y>=0:
self.up = False
self.... | 46 | 547 | 157 | 704 | #----------------------------------------------------------------------
# Name: popup
# Purpose: Generic popup control
#
# Author: Gerrit van Dyk
#
# Created: 2002/11/20
# Version: 0.1
# License: wxWindows license
# Tags: phoenix-port
#------------------------------------------... | #----------------------------------------------------------------------
# Name: popup
# Purpose: Generic popup control
#
# Author: Gerrit van Dyk
#
# Created: 2002/11/20
# Version: 0.1
# License: wxWindows license
# Tags: phoenix-port
#------------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.