code: def set_scrollbars(self):
          
          try:
              if len(self.row_labels) < 5:
                  show_horizontal = wx.SHOW_SB_NEVER
              else:
                  show_horizontal = wx.SHOW_SB_DEFAULT
              self.ShowScrollbars(show_horizontal, wx.SHOW_SB_DEFAULT)
          except AttributeError:
              pass
docs: Set to always have vertical scrollbar.
          Have horizontal scrollbar unless grid has very few rows.
          Older versions of wxPython will choke on this,
          in which case nothing happens.