Back to index

python3.2  3.2.2
Public Member Functions | Private Member Functions | Static Private Attributes
pynche.StripViewer.RightArrow Class Reference
Inheritance diagram for pynche.StripViewer.RightArrow:
Inheritance graph
[legend]
Collaboration diagram for pynche.StripViewer.RightArrow:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def move_to
def set_text

Private Member Functions

def _create
def _x

Static Private Attributes

tuple _TAG = ('rightarrow',)

Detailed Description

Definition at line 134 of file StripViewer.py.


Member Function Documentation

def pynche.StripViewer.RightArrow._create (   self,
  x 
) [private]

Reimplemented from pynche.StripViewer.LeftArrow.

Definition at line 137 of file StripViewer.py.

00137 
00138     def _create(self, x):
00139         arrow = self._canvas.create_line(
00140             x, self._YOFFSET,
00141             x + self._ARROWWIDTH, self._YOFFSET,
00142             x + self._ARROWWIDTH, self._ARROWHEIGHT + self._YOFFSET,
00143             arrow='last',
00144             width=3.0,
00145             tags=self._TAG)
00146         text = self._canvas.create_text(
00147             x - self._ARROWWIDTH + 15,            # BAW: kludge
00148             self._ARROWHEIGHT - self._TEXTYOFFSET,
00149             justify=RIGHT,
00150             text='128',
00151             tags=self._TAG)
00152         return arrow, text

def pynche.StripViewer.RightArrow._x (   self) [private]

Reimplemented from pynche.StripViewer.LeftArrow.

Definition at line 153 of file StripViewer.py.

00153 
00154     def _x(self):
00155         coords = list(self._canvas.coords(self._TAG))
00156         assert coords
00157         return coords[0] + self._ARROWWIDTH
00158 
00159 

def pynche.StripViewer.LeftArrow.move_to (   self,
  x 
) [inherited]

Definition at line 126 of file StripViewer.py.

00126 
00127     def move_to(self, x):
00128         deltax = x - self._x()
00129         self._canvas.move(self._TAG, deltax, 0)

Here is the call graph for this function:

def pynche.StripViewer.LeftArrow.set_text (   self,
  text 
) [inherited]

Definition at line 130 of file StripViewer.py.

00130 
00131     def set_text(self, text):
00132         self._canvas.itemconfigure(self.__text, text=text)
00133 


Member Data Documentation

tuple pynche.StripViewer.RightArrow._TAG = ('rightarrow',) [static, private]

Reimplemented from pynche.StripViewer.LeftArrow.

Definition at line 135 of file StripViewer.py.


The documentation for this class was generated from the following file: