'DoModal has finished. Can now access the users choices'

def OnOK(self):

    self._obj_.OnOK()
    pInfo = self.pInfo
    flags = pInfo.GetFlags()
    self['toFile'] = ((flags & win32ui.PD_PRINTTOFILE) != 0)
    self['direct'] = pInfo.GetDirect()
    self['preview'] = pInfo.GetPreview()
    self['continuePrinting'] = pInfo.GetContinuePrinting()
    self['curPage'] = pInfo.GetCurPage()
    self['numPreviewPages'] = pInfo.GetNumPreviewPages()
    self['userData'] = pInfo.GetUserData()
    self['draw'] = pInfo.GetDraw()
    self['pageDesc'] = pInfo.GetPageDesc()
    self['minPage'] = pInfo.GetMinPage()
    self['maxPage'] = pInfo.GetMaxPage()
    self['offsetPage'] = pInfo.GetOffsetPage()
    self['fromPage'] = pInfo.GetFromPage()
    self['toPage'] = pInfo.GetToPage()
    self['copies'] = pInfo.GetCopies()
    self['deviceName'] = pInfo.GetDeviceName()
    self['driverName'] = pInfo.GetDriverName()
    self['printAll'] = pInfo.PrintAll()
    self['printCollate'] = pInfo.PrintCollate()
    self['printRange'] = pInfo.PrintRange()
    self['printSelection'] = pInfo.PrintSelection()
    del self.pInfo
