Public API¶
wxPython GUI for saving icons to files.
Data:
A list of wxPython’s art providers. |
|
A list of wxPython’s builtin icons. |
Classes:
|
Frame for configuring the bitmap icon to be saved. |
|
An enumeration for supported filetypes. |
-
ART_PROVIDERS
= ['ART_TOOLBAR', 'ART_MENU', 'ART_BUTTON', 'ART_FRAME_ICON', 'ART_CMN_DIALOG', 'ART_HELP_BROWSER', 'ART_MESSAGE_BOX', 'ART_OTHER']¶ Type:
list
A list of wxPython’s art providers.
-
BUILTIN_ICONS
= ['ART_ADD_BOOKMARK', 'ART_CDROM', 'ART_CLOSE', 'ART_COPY', 'ART_CROSS_MARK', 'ART_CUT', 'ART_DELETE', 'ART_DEL_BOOKMARK', 'ART_ERROR', 'ART_EXECUTABLE_FILE', 'ART_FILE_OPEN', 'ART_FILE_SAVE', 'ART_FILE_SAVE_AS', 'ART_FIND', 'ART_FIND_AND_REPLACE', 'ART_FLOPPY', 'ART_FOLDER', 'ART_FOLDER_OPEN', 'ART_GOTO_FIRST', 'ART_GOTO_LAST', 'ART_GO_BACK', 'ART_GO_DIR_UP', 'ART_GO_DOWN', 'ART_GO_FORWARD', 'ART_GO_HOME', 'ART_GO_TO_PARENT', 'ART_GO_UP', 'ART_HARDDISK', 'ART_HELP', 'ART_HELP_BOOK', 'ART_HELP_FOLDER', 'ART_HELP_PAGE', 'ART_HELP_SETTINGS', 'ART_HELP_SIDE_PANEL', 'ART_INFORMATION', 'ART_LIST_VIEW', 'ART_MINUS', 'ART_MISSING_IMAGE', 'ART_NEW', 'ART_NEW_DIR', 'ART_NORMAL_FILE', 'ART_PASTE', 'ART_PLUS', 'ART_PRINT', 'ART_QUESTION', 'ART_QUIT', 'ART_REDO', 'ART_REPORT_VIEW', 'ART_TICK_MARK', 'ART_TIP', 'ART_UNDO', 'ART_WARNING']¶ Type:
list
A list of wxPython’s builtin icons.
-
class
BitmapSaverFrame
(parent, id=- 1, title='', pos=(- 1, - 1), size=(- 1, - 1), style=541072960, name=b'frame')[source]¶ Bases:
Frame
Frame for configuring the bitmap icon to be saved.
- Parameters
parent (
Window
) – The parent window. This may be, and often is,None
. If it is notNone
, the frame will be minimized when its parent is minimized and restored when it is restored (although it will still be possible to minimize and restore just this frame itself).id (
int
) – The window identifier. Default-1
.title (
str
) – The caption to be displayed on the frame’s title bar. Default''
.pos (
Point
) – The window position. The valuewx.DefaultPosition
indicates a default position, chosen by either the windowing system or wxWidgets, depending on the platform. Default(-1, -1)
.size (
Size
) – The window size. The valuewx.DefaultSize
indicates a default size, chosen by either the windowing system or wxWidgets, depending on the platform. Default(-1, -1)
.style (
str
) – The window style. Default541072960
.name (
str
) – The name of the frame. This parameter is used to associate a name with the frame. Defaultb'frame'
.
Methods:
on_close
(*events)Close the window.
on_save
(event)Save the icon with the current settings.
update_preview
(*events)Update the preview image.
-
enum
FileTypesEnum
(value)[source]¶ Bases:
enum.Enum
An enumeration for supported filetypes.
Valid values are as follows:
-
BITMAP_TYPE_BMP
= <FileTypesEnum.BITMAP_TYPE_BMP: 0, BMP files (*.bmp)|*.bmp, ftype=1>¶
-
BITMAP_TYPE_ICO
= <FileTypesEnum.BITMAP_TYPE_ICO: 1, ICO files (*.ico)|*.ico, ftype=3>¶
-
BITMAP_TYPE_CUR
= <FileTypesEnum.BITMAP_TYPE_CUR: 2, CUR files (*.cur)|*.cur, ftype=5>¶
-
BITMAP_TYPE_XBM
= <FileTypesEnum.BITMAP_TYPE_XBM: 3, XBM files (*.xbm)|*.xbm, ftype=7>¶
-
BITMAP_TYPE_XBM_DATA
= <FileTypesEnum.BITMAP_TYPE_XBM_DATA: 4, XBM DATA files (*.bmp)|*.bmp, ftype=8>¶
-
BITMAP_TYPE_XPM
= <FileTypesEnum.BITMAP_TYPE_XPM: 5, XBM files (*.xpm)|*.xpm, ftype=9>¶
-
BITMAP_TYPE_XPM_DATA
= <FileTypesEnum.BITMAP_TYPE_XPM_DATA: 6, XPM DATA files (*.xpm)|*.xpm, ftype=10>¶
-
BITMAP_TYPE_TIFF
= <FileTypesEnum.BITMAP_TYPE_TIFF: 7, TIFF files (*.tiff)|*.tiff, ftype=11>¶
-
BITMAP_TYPE_TIF
= <FileTypesEnum.BITMAP_TYPE_TIF: 8, TIFF files (*.tiff)|*.tiff, ftype=11>¶
-
BITMAP_TYPE_GIF
= <FileTypesEnum.BITMAP_TYPE_GIF: 9, GIF files (*.gif)|*.gif, ftype=13>¶
-
BITMAP_TYPE_PNG
= <FileTypesEnum.BITMAP_TYPE_PNG: 10, PNG files (*.png)|*.png, ftype=15>¶
-
BITMAP_TYPE_JPEG
= <FileTypesEnum.BITMAP_TYPE_JPEG: 11, JPEG files (*.jpg)|*.jpg, ftype=17>¶
-
BITMAP_TYPE_PNM
= <FileTypesEnum.BITMAP_TYPE_PNM: 12, PNM files (*.pnm)|*.pnm, ftype=19>¶
-
BITMAP_TYPE_PCX
= <FileTypesEnum.BITMAP_TYPE_PCX: 13, PCX files (*.pcx)|*.pcx, ftype=21>¶
-
BITMAP_TYPE_PICT
= <FileTypesEnum.BITMAP_TYPE_PICT: 14, PICT files (*.pict)|*.pict, ftype=23>¶
-
BITMAP_TYPE_ICON
= <FileTypesEnum.BITMAP_TYPE_ICON: 15, ICON files (*.ico)|*.ico, ftype=25>¶
-
BITMAP_TYPE_ANI
= <FileTypesEnum.BITMAP_TYPE_ANI: 16, ANI files (*.ani)|*.ani, ftype=27>¶
-
BITMAP_TYPE_IFF
= <FileTypesEnum.BITMAP_TYPE_IFF: 17, IFF files (*.iff)|*.iff, ftype=28>¶
-
BITMAP_TYPE_TGA
= <FileTypesEnum.BITMAP_TYPE_TGA: 18, TGA files (*.tga)|*.tga, ftype=29>¶
-
BITMAP_TYPE_MACCURSOR
= <FileTypesEnum.BITMAP_TYPE_MACCURSOR: 19, Mac Cursor files (*.*)|*.*, ftype=30>¶
-