parameters: (self, dc, page)
docstring: Render the STC window into a DC for printing.
          
          Force the right margin of the rendered window to be huge so the STC
          won't attempt word wrapping.
          
          @param dc: the device context representing the page
          
          @param page: page number
docstring_summary: Render the STC window into a DC for printing.
          
          Force the right margin of the rendered window to be huge so the STC
          won't attempt word wrapping.
docstring_tokens: Render the STC window into a DC for printing . Force the right margin of the rendered window to be huge so the STC won t attempt word wrapping .
function: def _drawPageContents(self, dc, page):
          """Render the STC window into a DC for printing.
          
          Force the right margin of the rendered window to be huge so the STC
          won't attempt word wrapping.
          
          @param dc: the device context representing the page
          
          @param page: page number
          """
          start_pos, end_pos = self._getPositionsOfPage(page)
          render_rect = wx.Rect(self.x1, self.y1, 32000, self.y2)
          page_rect = wx.Rect(self.x1, self.y1, self.x2, self.y2)
  
          self.stc.SetPrintColourMode(self.print_mode)
          edge_mode = self.stc.GetEdgeMode()
          self.stc.SetEdgeMode(wx.stc.STC_EDGE_NONE)
          end_point = self.stc.FormatRange(True, start_pos, end_pos, dc, dc,
                                          render_rect, page_rect)
          self.stc.SetEdgeMode(edge_mode)
function_tokens: def _drawPageContents ( self , dc , page ) : start_pos , end_pos = self . _getPositionsOfPage ( page ) render_rect = wx . Rect ( self . x1 , self . y1 , 32000 , self . y2 ) page_rect = wx . Rect ( self . x1 , self . y1 , self . x2 , self . y2 ) self . stc . SetPrintColourMode ( self . print_mode ) edge_mode = self . stc . GetEdgeMode ( ) self . stc . SetEdgeMode ( wx . stc . STC_EDGE_NONE ) end_point = self . stc . FormatRange ( True , start_pos , end_pos , dc , dc , render_rect , page_rect ) self . stc . SetEdgeMode ( edge_mode )