Helpviewer/SpeedDial/SpeedDialWriter.py

changeset 2954
bf0215fe12d1
parent 2302
f29e9405c851
child 3057
10516539f238
child 3160
209a07d7e401
equal deleted inserted replaced
2953:703452a2876f 2954:bf0215fe12d1
29 @param fileNameOrDevice name of the file to write (string) 29 @param fileNameOrDevice name of the file to write (string)
30 or device to write to (QIODevice) 30 or device to write to (QIODevice)
31 @param pages list of speed dial pages (list of Page) 31 @param pages list of speed dial pages (list of Page)
32 @param pagesPerRow number of pages per row (integer) 32 @param pagesPerRow number of pages per row (integer)
33 @param speedDialSize size of the speed dial pages (integer) 33 @param speedDialSize size of the speed dial pages (integer)
34 @return flag indicating success (boolean)
34 """ 35 """
35 if isinstance(fileNameOrDevice, QIODevice): 36 if isinstance(fileNameOrDevice, QIODevice):
36 f = fileNameOrDevice 37 f = fileNameOrDevice
37 else: 38 else:
38 f = QFile(fileNameOrDevice) 39 f = QFile(fileNameOrDevice)

eric ide

mercurial