Console Issues

2003-02-27
2003-03-28
  • Using the Console Dialog, I noticed that sometimes when you display a enough lines to scroll the screen .. that it doesn't always show the bottom/latest line. I changed the below:

    class LineDisplay(pyui.widgets.Base):

    def rewrapAll(self):
    #changed below
    self.vscroll.scrollToItem(self.topItem)

    AND

    def addLine(self, line, color = None):
    #changed below
    self.vscroll.scrollToItem(self.topItem)

    TO

    self.vscroll.scrollToItem(numLines)

    Now I see the last line, but I am not sure this is what was intended.

    Also, I wasn't sure how (or if) you could get input from the ConsoleEdit box.  It seems simple enough to add a way to do callbacks in the Console constructor. Then in the def _pyuiGo(self, object), call that callback if given.

    Anyways, something to think about.

     
    • Sean Riley
      Sean Riley
      2003-03-28

      sounds like a good idea. I'll get that into the next release - 0.96

      Sean