Logo Search packages:      
Sourcecode: jokosher version File versions  Download package

def EventViewer::EventViewer::do_size_request (   self,
  requisition 
)

We need to override this function otherwise we get
      given a 1x1 display size!

Definition at line 589 of file EventViewer.py.

00589                                             :
            """ We need to override this function otherwise we get
                  given a 1x1 display size!
            """
            if self.event.duration > 0:
                  requisition.width = self.event.duration * self.project.viewScale
            else:
                  requisition.width = 10 * self.project.viewScale
                  
            if not (self.small):
                  requisition.height = 77
            else:
                  rect = self.get_allocation()
                  print "Working out height",rect.height
                  if rect.height < 30:
                        requisition.height = 30
                  else:
                        requisition.height = rect.height

      #_____________________________________________________________________
      
      def OnStateChanged(self, obj, change=None):


Generated by  Doxygen 1.6.0   Back to index