コード例 #1
0
ファイル: Printing.py プロジェクト: tomihasa/pygui
 def __getstate__(self):
     state = GPageSetup.__getstate__(self)
     state['_gtk_page_setup'] = get_gtk_state(self._gtk_page_setup)
     return state
コード例 #2
0
ファイル: Printing.py プロジェクト: mnabeelp/PyGUI
 def __getstate__(self):
     psd = self._win_psd
     state = GPageSetup.__getstate__(self)
     state['_win_devmode'] = wps.get_handle_contents(psd.hDevMode)
     state['_win_devnames'] = wps.get_handle_contents(psd.hDevNames)
     return state
コード例 #3
0
 def __getstate__(self):
     state = GPageSetup.__getstate__(self)
     data = NSKeyedArchiver.archivedDataWithRootObject_(self._ns_print_info)
     state['_ns_print_info'] = data.bytes()
     return state
コード例 #4
0
 def __getstate__(self):
     state = GPageSetup.__getstate__(self)
     data = NSKeyedArchiver.archivedDataWithRootObject_(self._ns_print_info)
     state['_ns_print_info'] = data.bytes()
     return state
コード例 #5
0
 def __getstate__(self):
     psd = self._win_psd
     state = GPageSetup.__getstate__(self)
     state['_win_devmode'] = wps.get_handle_contents(psd.hDevMode)
     state['_win_devnames'] = wps.get_handle_contents(psd.hDevNames)
     return state