/[ascend]/trunk/pygtk/canvas/port.py
ViewVC logotype

Diff of /trunk/pygtk/canvas/port.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1940 by jpye, Wed Jun 11 09:45:49 2008 UTC revision 1941 by jpye, Tue Nov 4 03:30:32 2008 UTC
# Line 161  class Block(Element): Line 161  class Block(Element):
161      they can not be used to resize/modify the element.      they can not be used to resize/modify the element.
162      """      """
163    
164      def __init__(self, label="unnamed", width=10, height=10):      def __init__(self, label="unnamed", width=64, height=64):
165    
166          self.ports = []          self.ports = []
167          self.label = label                  self.label = label        
# Line 213  class DefaultBlock(Block): Line 213  class DefaultBlock(Block):
213      box with the input ports on the left and the output ports on the right.      box with the input ports on the left and the output ports on the right.
214      """      """
215    
216      def __init__(self, label="unnamed", width=10, height=10, inputs=2, outputs=3):      def __init__(self, label="unnamed", width=64, height=64, inputs=2, outputs=3):
217    
218          super(DefaultBlock, self).__init__(label, width, height)          super(DefaultBlock, self).__init__(label, width, height)
219    

Legend:
Removed from v.1940  
changed lines
  Added in v.1941

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22