commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/common/src/cursing Button.py CheckBox.py C...


From: Jason Cater
Subject: gnue/common/src/cursing Button.py CheckBox.py C...
Date: Wed, 09 Oct 2002 23:42:12 -0400

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    02/10/09 23:42:11

Modified files:
        common/src/cursing: Button.py CheckBox.py CheckBoxGroup.py 
                            ComboBox.py Control.py Dialog.py 
                            DirChooser.py Event.py FileSelectPad.py 
                            FileSelector.py FocusedLabel.py Frame.py 
                            GraphicObject.py InputBox.py Label.py 
                            Menu.py MenuBar.py MsgBoxOK.py 
                            MsgBoxTimer.py MsgBoxYesNo.py Progress.py 
                            RadioButton.py RadioGroup.py 
                            ScreenContainer.py ScrollBar.py TextBox.py 
                            VButton.py VScrollBar.py sio.py 
Added files:
        common/src/cursing/tests: demo.py 

Log message:
        fixed typos; added demo

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/Button.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/CheckBox.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/CheckBoxGroup.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/ComboBox.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/Control.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/Dialog.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/DirChooser.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/Event.py.diff?cvsroot=OldCVS&tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/FileSelectPad.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/FileSelector.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/FocusedLabel.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/Frame.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/GraphicObject.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/InputBox.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/Label.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/Menu.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/MenuBar.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/MsgBoxOK.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/MsgBoxTimer.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/MsgBoxYesNo.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/Progress.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/RadioButton.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/RadioGroup.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/ScreenContainer.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/ScrollBar.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/TextBox.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/VButton.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/VScrollBar.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/sio.py.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/cursing/tests/demo.py?cvsroot=OldCVS&rev=1.1

Patches:
Index: gnue/common/src/cursing/Button.py
diff -c gnue/common/src/cursing/Button.py:1.2 
gnue/common/src/cursing/Button.py:1.3
*** gnue/common/src/cursing/Button.py:1.2       Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/Button.py   Wed Oct  9 23:42:11 2002
***************
*** 27,33 ****
  #
  
  from gnue.common import GDebug
- 
  from constants import *
  from Control import Control
  
--- 27,32 ----
Index: gnue/common/src/cursing/CheckBox.py
diff -c gnue/common/src/cursing/CheckBox.py:1.2 
gnue/common/src/cursing/CheckBox.py:1.3
*** gnue/common/src/cursing/CheckBox.py:1.2     Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/CheckBox.py Wed Oct  9 23:42:11 2002
***************
*** 27,43 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # Checkbox.py
- #
- 
  from constants import *
  from RadioButton import RadioButton
  
  class CheckBox(RadioButton):
-   """
-   """
    def __init__( self, Root, Name, Y,X, Caption, Id, **properties):
      apply( RadioButton.__init__, 
        (self, Root, Name, Y,X, Caption, Id), properties)
--- 27,36 ----
Index: gnue/common/src/cursing/CheckBoxGroup.py
diff -c gnue/common/src/cursing/CheckBoxGroup.py:1.2 
gnue/common/src/cursing/CheckBoxGroup.py:1.3
*** gnue/common/src/cursing/CheckBoxGroup.py:1.2        Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/CheckBoxGroup.py    Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # CheckBoxGroup.py
- #
- 
  import math
  
  from constants import *
--- 27,32 ----
***************
*** 39,46 ****
  from RadioGroup import RadioGroup
  
  class CheckBoxGroup(RadioGroup):
-   """
-   """
    def __init__(self,Root,GroupName,Y,X,W,**properties):
      apply(RadioGroup.__init__,(self,Root,GroupName,Y,X,W),properties)
      self._activeState = 0
--- 34,39 ----
***************
*** 77,82 ****
      self.Parent.AddControl(button)
      button.SetMethod("CLICK",self._ToggleItem)
      self.buttons.append(button)
!     self.H = self.H+ 1
  
  
--- 70,75 ----
      self.Parent.AddControl(button)
      button.SetMethod("CLICK",self._ToggleItem)
      self.buttons.append(button)
!     self.H += 1
  
  
Index: gnue/common/src/cursing/ComboBox.py
diff -c gnue/common/src/cursing/ComboBox.py:1.2 
gnue/common/src/cursing/ComboBox.py:1.3
*** gnue/common/src/cursing/ComboBox.py:1.2     Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/ComboBox.py Wed Oct  9 23:42:11 2002
***************
*** 27,45 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # ComboBox.py
- #
- 
  from constants import *
  from Menu import Menu
  from Button import Button
  from Control import Control
  
  class ComboBox(Control):
-   """
-   """
    def __init__(self,Parent,BoxName, Y, X, W, **properties):
      apply(Control.__init__,(self,Parent,BoxName),properties)
      self.PARENT = Parent
--- 27,38 ----
***************
*** 59,65 ****
      Parent.AddControl(self._menu)
      Parent.AddControl(self._button)
      self.SetMethod("SYSPAINT", self.Paint)
!     
    def Paint(self,v1,v2,v3):
      Screen = self.PARENT.Screen()
      Screen.AutoRefresh = 0
--- 52,58 ----
      Parent.AddControl(self._menu)
      Parent.AddControl(self._button)
      self.SetMethod("SYSPAINT", self.Paint)
! 
    def Paint(self,v1,v2,v3):
      Screen = self.PARENT.Screen()
      Screen.AutoRefresh = 0
***************
*** 71,77 ****
      Screen.PrintAt(Y,X+W-1,chr(tiVLINE))
      Screen.PrintAt(Y+1,X, chr(tiLLC) + (W-2) * chr(tiHLINE) + chr(tiLRC))
      Screen.AutoRefresh = 1
!   
    def _Show(self,v1,v2,v3):
      self._menu.ShowOff(None,None,None)
  
--- 64,70 ----
      Screen.PrintAt(Y,X+W-1,chr(tiVLINE))
      Screen.PrintAt(Y+1,X, chr(tiLLC) + (W-2) * chr(tiHLINE) + chr(tiLRC))
      Screen.AutoRefresh = 1
! 
    def _Show(self,v1,v2,v3):
      self._menu.ShowOff(None,None,None)
  
Index: gnue/common/src/cursing/Control.py
diff -c gnue/common/src/cursing/Control.py:1.2 
gnue/common/src/cursing/Control.py:1.3
*** gnue/common/src/cursing/Control.py:1.2      Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/Control.py  Wed Oct  9 23:42:11 2002
***************
*** 27,43 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # Control.py
- #
- 
  from constants import *
  from GraphicObject import GraphicObject
  
  class Control(GraphicObject):
-   """ Base class for all control (means possibly interactice) elements
-   """
    def __init__(self, Parent, CName, **properties):
      apply (GraphicObject.__init__, (self, Parent.SCREEN),
         properties)
--- 27,36 ----
Index: gnue/common/src/cursing/Dialog.py
diff -c gnue/common/src/cursing/Dialog.py:1.2 
gnue/common/src/cursing/Dialog.py:1.3
*** gnue/common/src/cursing/Dialog.py:1.2       Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/Dialog.py   Wed Oct  9 23:42:11 2002
***************
*** 27,46 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # Dialog.py
- #
- 
  from constants import *
  from utility import _paintBorder
  from ScreenContainer import ScreenContainer
  
  class Dialog(ScreenContainer):
    """
!     like a full screen container, but only a smaller portion of it.  :)
!     the user defines a screen region which makes up the dialog...they
!     may only put controls within this region.
    """
    def __init__(self, ParentContainer, r1=0, c1=0, r2=0, c2=0, **properties):
      SIOInstance = ParentContainer.Screen()
--- 27,41 ----
  #
  
  from gnue.common import GDebug
  from constants import *
  from utility import _paintBorder
  from ScreenContainer import ScreenContainer
  
  class Dialog(ScreenContainer):
    """
!     like a full screen container, but only a smaller portion of it.
!     the user defines a screen region which makes up the dialog...
!     they may only put controls within this region.
    """
    def __init__(self, ParentContainer, r1=0, c1=0, r2=0, c2=0, **properties):
      SIOInstance = ParentContainer.Screen()
Index: gnue/common/src/cursing/DirChooser.py
diff -c gnue/common/src/cursing/DirChooser.py:1.2 
gnue/common/src/cursing/DirChooser.py:1.3
*** gnue/common/src/cursing/DirChooser.py:1.2   Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/DirChooser.py       Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # DirChooser.py
- #
- 
  import os
  import string
  
--- 27,32 ----
***************
*** 41,48 ****
  from Button import Button
  
  class DirChooser(Control):
-   """
-   """
    def __init__(self, Root, Y, X, W, Start, Name="", **properties):
      apply(Control.__init__, (self, Root, Name), properties)
      self.X = X
--- 36,41 ----
Index: gnue/common/src/cursing/Event.py
diff -c gnue/common/src/cursing/Event.py:1.1 
gnue/common/src/cursing/Event.py:1.2
*** gnue/common/src/cursing/Event.py:1.1        Wed Oct  9 22:44:22 2002
--- gnue/common/src/cursing/Event.py    Wed Oct  9 23:42:11 2002
***************
*** 28,37 ****
  
  from gnue.common import GDebug
  
- #
- # Event.py
- #
- 
  class Event():
    """
      UserInteraction-Event (Mouseclick, Keypress)
--- 28,33 ----
Index: gnue/common/src/cursing/FileSelectPad.py
diff -c gnue/common/src/cursing/FileSelectPad.py:1.2 
gnue/common/src/cursing/FileSelectPad.py:1.3
*** gnue/common/src/cursing/FileSelectPad.py:1.2        Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/FileSelectPad.py    Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # FileSelectPad.py
- #
- 
  import os
  import string
  import curses
--- 27,32 ----
Index: gnue/common/src/cursing/FileSelector.py
diff -c gnue/common/src/cursing/FileSelector.py:1.2 
gnue/common/src/cursing/FileSelector.py:1.3
*** gnue/common/src/cursing/FileSelector.py:1.2 Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/FileSelector.py     Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # FileSelector.py
- #
- 
  import os
  import math
  
--- 27,32 ----
Index: gnue/common/src/cursing/FocusedLabel.py
diff -c gnue/common/src/cursing/FocusedLabel.py:1.2 
gnue/common/src/cursing/FocusedLabel.py:1.3
*** gnue/common/src/cursing/FocusedLabel.py:1.2 Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/FocusedLabel.py     Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # FocusedLabel.py
- #
- 
  from constants import *
  from Label import Label
  
--- 27,32 ----
Index: gnue/common/src/cursing/Frame.py
diff -c gnue/common/src/cursing/Frame.py:1.2 
gnue/common/src/cursing/Frame.py:1.3
*** gnue/common/src/cursing/Frame.py:1.2        Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/Frame.py    Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # Frame.py
- #
- 
  from constants import *
  from utility import _paintBorder
  from Control import Control
--- 27,32 ----
Index: gnue/common/src/cursing/GraphicObject.py
diff -c gnue/common/src/cursing/GraphicObject.py:1.2 
gnue/common/src/cursing/GraphicObject.py:1.3
*** gnue/common/src/cursing/GraphicObject.py:1.2        Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/GraphicObject.py    Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # GraphicObject.py
- #
- 
  import curses
  
  from constants import *
--- 27,32 ----
***************
*** 114,120 ****
  
  
    def HiLight(self):
!     Screen = SCREEN
      self._SetLight("HILIGHT_COLOR", Screen.SetColor, Screen.HiLight)
  
    #
--- 109,115 ----
  
  
    def HiLight(self):
!     Screen = self.SCREEN
      self._SetLight("HILIGHT_COLOR", Screen.SetColor, Screen.HiLight)
  
    #
Index: gnue/common/src/cursing/InputBox.py
diff -c gnue/common/src/cursing/InputBox.py:1.2 
gnue/common/src/cursing/InputBox.py:1.3
*** gnue/common/src/cursing/InputBox.py:1.2     Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/InputBox.py Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # InputBox.py
- #
- 
  from constants import *
  from Button import Button
  from Dialog import Dialog
--- 27,32 ----
Index: gnue/common/src/cursing/Label.py
diff -c gnue/common/src/cursing/Label.py:1.2 
gnue/common/src/cursing/Label.py:1.3
*** gnue/common/src/cursing/Label.py:1.2        Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/Label.py    Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # Label.py
- #
- 
  from constants import *
  from re import search
  from string import split
--- 27,32 ----
Index: gnue/common/src/cursing/Menu.py
diff -c gnue/common/src/cursing/Menu.py:1.2 gnue/common/src/cursing/Menu.py:1.3
*** gnue/common/src/cursing/Menu.py:1.2 Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/Menu.py     Wed Oct  9 23:42:11 2002
***************
*** 34,41 ****
  from ScreenContainer import *
  
  class Menu(FocusedLabel):
-   """
-   """
    def __init__(self,Parent,MenuName,Y,X,DisplayName = "", **properties):
      self.maxLengthFixed = 0
      DisplayName = self.__FixDisplay(DisplayName)
--- 34,39 ----
***************
*** 80,86 ****
      MenuHeight = len(self.items) + 2
      MenuWidth  = self.maxLength
      X = self.X
!     Y += 1
      Parent = self.PARENT
      Screen = Parent.SCREEN
      self.myscreen = Screen.CaptureScreen( Y, X, Y + MenuHeight , 
--- 78,84 ----
      MenuHeight = len(self.items) + 2
      MenuWidth  = self.maxLength
      X = self.X
!     Y = self.Y + 1
      Parent = self.PARENT
      Screen = Parent.SCREEN
      self.myscreen = Screen.CaptureScreen( Y, X, Y + MenuHeight , 
Index: gnue/common/src/cursing/MenuBar.py
diff -c gnue/common/src/cursing/MenuBar.py:1.2 
gnue/common/src/cursing/MenuBar.py:1.3
*** gnue/common/src/cursing/MenuBar.py:1.2      Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/MenuBar.py  Wed Oct  9 23:42:11 2002
***************
*** 27,44 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # MenuBar.py
- #
- 
  from constants import *
  from Control import Control
  from Menu import Menu
  
  class MenuBar(Control):
-   """
-   """
    def __init__(self, Root, Y, X , **properties):
      apply(Control.__init__, (self,Root,''),properties)
      self.screen = Root.SCREEN
--- 27,37 ----
Index: gnue/common/src/cursing/MsgBoxOK.py
diff -c gnue/common/src/cursing/MsgBoxOK.py:1.2 
gnue/common/src/cursing/MsgBoxOK.py:1.3
*** gnue/common/src/cursing/MsgBoxOK.py:1.2     Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/MsgBoxOK.py Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # MsgBoxOK.py
- #
- 
  from constants import *
  from Button import Button
  from Label import Label
--- 27,32 ----
Index: gnue/common/src/cursing/MsgBoxTimer.py
diff -c gnue/common/src/cursing/MsgBoxTimer.py:1.2 
gnue/common/src/cursing/MsgBoxTimer.py:1.3
*** gnue/common/src/cursing/MsgBoxTimer.py:1.2  Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/MsgBoxTimer.py      Wed Oct  9 23:42:11 2002
***************
*** 27,43 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # MsgBoxOK.py
- #
- 
  from constants import *
  from Button import Button
  from Label import Label
  from Dialog import Dialog
  
! class MsgBoxOK(Dialog):
    """
      A sample 'standard' OK dialog box for short messages.
    """
--- 27,38 ----
  #
  
  from gnue.common import GDebug
  from constants import *
  from Button import Button
  from Label import Label
  from Dialog import Dialog
  
! class MsgBoxTimer(Dialog):
    """
      A sample 'standard' OK dialog box for short messages.
    """
Index: gnue/common/src/cursing/MsgBoxYesNo.py
diff -c gnue/common/src/cursing/MsgBoxYesNo.py:1.2 
gnue/common/src/cursing/MsgBoxYesNo.py:1.3
*** gnue/common/src/cursing/MsgBoxYesNo.py:1.2  Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/MsgBoxYesNo.py      Wed Oct  9 23:42:11 2002
***************
*** 28,38 ****
  
  from gnue.common import GDebug
  
! #
! # MsgBoxYesNo.py
! #
! 
! # FIXME: this looks strangely like another MsgBox class -- is it really
  # needed?
  
  from constants import *
--- 28,34 ----
  
  from gnue.common import GDebug
  
! # TODO: this looks strangely like another MsgBox class -- is it really
  # needed?
  
  from constants import *
Index: gnue/common/src/cursing/Progress.py
diff -c gnue/common/src/cursing/Progress.py:1.2 
gnue/common/src/cursing/Progress.py:1.3
*** gnue/common/src/cursing/Progress.py:1.2     Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/Progress.py Wed Oct  9 23:42:11 2002
***************
*** 29,40 ****
  from gnue.common import GDebug
  
  #
! # Control.py
! #
! 
! #
! # Paint still needs some refinement possibly.  Specifically some sort of
! # flags for 'REFRESH' method calls.  Seems to work OK though.
  #
  
  import curses
--- 29,36 ----
  from gnue.common import GDebug
  
  #
! # TODO: Paint still needs some refinement possibly.  Specifically some sort of
! # TODO: flags for 'REFRESH' method calls.  Seems to work OK though.
  #
  
  import curses
Index: gnue/common/src/cursing/RadioButton.py
diff -c gnue/common/src/cursing/RadioButton.py:1.2 
gnue/common/src/cursing/RadioButton.py:1.3
*** gnue/common/src/cursing/RadioButton.py:1.2  Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/RadioButton.py      Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # RadioButton.py
- #
- 
  from constants import *
  from FocusedLabel import FocusedLabel
  
--- 27,32 ----
Index: gnue/common/src/cursing/RadioGroup.py
diff -c gnue/common/src/cursing/RadioGroup.py:1.2 
gnue/common/src/cursing/RadioGroup.py:1.3
*** gnue/common/src/cursing/RadioGroup.py:1.2   Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/RadioGroup.py       Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # RadioGroup.py
- #
- 
  from constants import *
  from RadioButton import RadioButton
  from Control import Control
--- 27,32 ----
Index: gnue/common/src/cursing/ScreenContainer.py
diff -c gnue/common/src/cursing/ScreenContainer.py:1.2 
gnue/common/src/cursing/ScreenContainer.py:1.3
*** gnue/common/src/cursing/ScreenContainer.py:1.2      Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/ScreenContainer.py  Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # ScreenContainer.py
- #
- 
  import math
  import curses
  
--- 27,32 ----
Index: gnue/common/src/cursing/ScrollBar.py
diff -c gnue/common/src/cursing/ScrollBar.py:1.2 
gnue/common/src/cursing/ScrollBar.py:1.3
*** gnue/common/src/cursing/ScrollBar.py:1.2    Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/ScrollBar.py        Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # ScrollBar.py
- #
- 
  import math
  import string
  import curses
--- 27,32 ----
Index: gnue/common/src/cursing/TextBox.py
diff -c gnue/common/src/cursing/TextBox.py:1.2 
gnue/common/src/cursing/TextBox.py:1.3
*** gnue/common/src/cursing/TextBox.py:1.2      Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/TextBox.py  Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # TextBox.py
- #
- 
  import curses
  
  from constants import *
--- 27,32 ----
Index: gnue/common/src/cursing/VButton.py
diff -c gnue/common/src/cursing/VButton.py:1.2 
gnue/common/src/cursing/VButton.py:1.3
*** gnue/common/src/cursing/VButton.py:1.2      Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/VButton.py  Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # VButton.py
- #
- 
  from constants import *
  from Button import Button
  
--- 27,32 ----
Index: gnue/common/src/cursing/VScrollBar.py
diff -c gnue/common/src/cursing/VScrollBar.py:1.2 
gnue/common/src/cursing/VScrollBar.py:1.3
*** gnue/common/src/cursing/VScrollBar.py:1.2   Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/VScrollBar.py       Wed Oct  9 23:42:11 2002
***************
*** 27,37 ****
  #
  
  from gnue.common import GDebug
- 
- #
- # VScrollBar.py
- #
- 
  import math
  import curses
  
--- 27,32 ----
Index: gnue/common/src/cursing/sio.py
diff -c gnue/common/src/cursing/sio.py:1.2 gnue/common/src/cursing/sio.py:1.3
*** gnue/common/src/cursing/sio.py:1.2  Wed Oct  9 23:04:41 2002
--- gnue/common/src/cursing/sio.py      Wed Oct  9 23:42:11 2002
***************
*** 40,50 ****
  class sio:
    """
    This class basically acts as an interface to curses.  To convert this
!   class to NCurses or SLANG, you would only need to change this class.  
!   
    NOT TRUE ANYMORE, I´m sorry to say, but I use curses code in other
    places as well. (Says the original author)
!     
    """
    def __init__(self):
  
--- 40,50 ----
  class sio:
    """
    This class basically acts as an interface to curses.  To convert this
!   class to NCurses or SLANG, you would only need to change this class.
! 
    NOT TRUE ANYMORE, I´m sorry to say, but I use curses code in other
    places as well. (Says the original author)
! 
    """
    def __init__(self):
  
***************
*** 62,68 ****
      # get curses keyevents into local tokens
      # FIXME: what about ascii key maps?  ascii.BS?  Maybe should
      # modify these to handle tuples.
!     self.TokBackspace = curses.KEY_BACKSPACE 
      self.TokUpArrow = curses.KEY_UP
      self.TokDownArrow = curses.KEY_DOWN
      self.TokRightArrow = curses.KEY_RIGHT
--- 62,68 ----
      # get curses keyevents into local tokens
      # FIXME: what about ascii key maps?  ascii.BS?  Maybe should
      # modify these to handle tuples.
!     self.TokBackspace = curses.KEY_BACKSPACE
      self.TokUpArrow = curses.KEY_UP
      self.TokDownArrow = curses.KEY_DOWN
      self.TokRightArrow = curses.KEY_RIGHT
***************
*** 110,125 ****
  
        if curses.has_colors ():
          # set red to white
!         curses.init_pair( 1, curses.COLOR_WHITE, 
            curses.COLOR_BLACK)
          # set green to yellow with black back
!         curses.init_pair( 2, curses.COLOR_YELLOW, 
            curses.COLOR_BLACK)
          # set yellow to cyan with black back
!         curses.init_pair( 3, curses.COLOR_CYAN, 
            curses.COLOR_BLACK)
          # set blue to magenta with black back
!         curses.init_pair( 4, curses.COLOR_MAGENTA, 
            curses.COLOR_BLACK)
      except:
        pass
--- 110,125 ----
  
        if curses.has_colors ():
          # set red to white
!         curses.init_pair( 1, curses.COLOR_WHITE,
            curses.COLOR_BLACK)
          # set green to yellow with black back
!         curses.init_pair( 2, curses.COLOR_YELLOW,
            curses.COLOR_BLACK)
          # set yellow to cyan with black back
!         curses.init_pair( 3, curses.COLOR_CYAN,
            curses.COLOR_BLACK)
          # set blue to magenta with black back
!         curses.init_pair( 4, curses.COLOR_MAGENTA,
            curses.COLOR_BLACK)
      except:
        pass
***************
*** 200,209 ****
      return self.s
  
  
!   def SetScreenInstance(self, TheScreen):
      """
      """
!     self.s = TheScreen
  
  
    def GetCharAt(self, Row, Col):
--- 200,209 ----
      return self.s
  
  
!   def SetScreenInstance(self, s):
      """
      """
!     self.s = s
  
  
    def GetCharAt(self, Row, Col):
***************
*** 221,227 ****
    def GetStr(self,Y,X,N):
      """
      FIXME:
!     Retrieve a string N long from (X,Y) traveling along 
      """
      result = []
      for i in range(0,N):
--- 221,227 ----
    def GetStr(self,Y,X,N):
      """
      FIXME:
!     Retrieve a string N long from (X,Y) traveling along
      """
      result = []
      for i in range(0,N):
***************
*** 280,287 ****
      """
      """
      if curses.has_colors():
!       # FIXME: should this be curses.color_pair(colorHi)?
!       self.PrintMods = curses.color_pair(colorLow)
      else:
        self.PrintMods = curses.A_NORMAL
  
--- 280,288 ----
      """
      """
      if curses.has_colors():
!       # TODO: should this be curses.color_pair(colorHi)?
!       self.PrintMods = curses.color_pair(colorHi)
!       ##self.PrintMods = curses.color_pair(colorLo)
      else:
        self.PrintMods = curses.A_NORMAL
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]