Anyone? Anyone?

Discussion in 'Python' started by Steve Williams, Sep 16, 2003.

  1. The following runs slow, as you might expect. I'm open to advice.

    .. . .
    def GetTotalPages(self):
    self.PPIPrinterWidth = 100 #whatever
    self.PPIPrinterHeight = 100 #whatever
    self.screenscale = 1.0 #whatever
    bitmap = wxEmptyBitmap(
    PrinterDefinition['PageWidth'] * self.PPIPrinterWidth
    ,PrinterDefinition['PageHeight'] * self.PPIPrinterHeight)
    DC = wxMemoryDC()
    DC.SelectObject(bitmap)
    self.page_total = 0
    while self.DoDrawing(DC) <> False:
    self.page_total += 1
    return self.page_total
    .. .
    Steve Williams, Sep 16, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. CM
    Replies:
    3
    Views:
    1,690
  2. Rukmal Fernando
    Replies:
    4
    Views:
    838
    Richard Grimes [MVP]
    Oct 27, 2003
  3. Replies:
    0
    Views:
    416
  4. JDS

    Anyone?? Anyone at all??

    JDS, Sep 26, 2005, in forum: HTML
    Replies:
    2
    Views:
    373
    Montgomery BOO...URNS
    Sep 29, 2005
  5. gregarican

    Anyone, anyone...Bueller?

    gregarican, Jun 22, 2007, in forum: Ruby
    Replies:
    2
    Views:
    89
    gregarican
    Jun 22, 2007
Loading...

Share This Page