Python wx.ImageFromStream() Examples
The following are 30
code examples of wx.ImageFromStream().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
wx
, or try the search function
.
Example #1
Source File: __init__.py From EventGhost with GNU General Public License v2.0 | 6 votes |
def SetValue(self, value): self.value = value if value and self.view: stream = StringIO(b64decode(value)) image = wx.ImageFromStream(stream) stream.close() boxWidth, boxHeight = self.view.GetClientSizeTuple() width, height = image.GetSize() if width > boxWidth: height *= 1.0 * boxWidth / width width = boxWidth if height > boxHeight: width *= 1.0 * boxHeight / height height = boxHeight image.Rescale(width, height) bmp = wx.BitmapFromImage(image) self.view.SetBitmap(bmp) self.view.SetClientSize((boxWidth, boxHeight))
Example #2
Source File: ImagePicker.py From EventGhost with GNU General Public License v2.0 | 6 votes |
def SetValue(self, imageString): self.imageString = imageString if imageString: stream = StringIO(b64decode(imageString)) image = wx.ImageFromStream(stream) stream.close() boxWidth, boxHeight = (10, 10) width, height = image.GetSize() if width > boxWidth: height *= 1.0 * boxWidth / width width = boxWidth if height > boxHeight: width *= 1.0 * boxHeight / height height = boxHeight image.Rescale(width, height) bmp = wx.BitmapFromImage(image) self.imageBox.SetBitmap(bmp) self.imageBox.SetSize((30, 30))
Example #3
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getTreeDefaultImage(): stream = cStringIO.StringIO(getTreeDefaultData()) return ImageFromStream(stream)
Example #4
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolScrollBarImage(): stream = cStringIO.StringIO(getToolScrollBarData()) return ImageFromStream(stream)
Example #5
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getTreeMenuBarImage(): stream = cStringIO.StringIO(getTreeMenuBarData()) return ImageFromStream(stream)
Example #6
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getTreeMenuImage(): stream = cStringIO.StringIO(getTreeMenuData()) return ImageFromStream(stream)
Example #7
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getTreeDialogImage(): stream = cStringIO.StringIO(getTreeDialogData()) return ImageFromStream(stream)
Example #8
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getTreeMenuItemImage(): stream = cStringIO.StringIO(getTreeMenuItemData()) return ImageFromStream(stream)
Example #9
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getTreeSizerGridImage(): stream = cStringIO.StringIO(getTreeSizerGridData()) return ImageFromStream(stream)
Example #10
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getTreeSizerGridBagImage(): stream = cStringIO.StringIO(getTreeSizerGridBagData()) return ImageFromStream(stream)
Example #11
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getTreeSizerHImage(): stream = cStringIO.StringIO(getTreeSizerHData()) return ImageFromStream(stream)
Example #12
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getTreeSizerVImage(): stream = cStringIO.StringIO(getTreeSizerVData()) return ImageFromStream(stream)
Example #13
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getTreeStaticBoxSizerVImage(): stream = cStringIO.StringIO(getTreeStaticBoxSizerVData()) return ImageFromStream(stream)
Example #14
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getTreeToolImage(): stream = cStringIO.StringIO(getTreeToolData()) return ImageFromStream(stream)
Example #15
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getTreeToolBarImage(): stream = cStringIO.StringIO(getTreeToolBarData()) return ImageFromStream(stream)
Example #16
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getTreeSizerFlexGridImage(): stream = cStringIO.StringIO(getTreeSizerFlexGridData()) return ImageFromStream(stream)
Example #17
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolUnknownImage(): stream = cStringIO.StringIO(getToolUnknownData()) return ImageFromStream(stream)
Example #18
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolTreeCtrlImage(): stream = cStringIO.StringIO(getToolTreeCtrlData()) return ImageFromStream(stream)
Example #19
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolToolBarImage(): stream = cStringIO.StringIO(getToolToolBarData()) return ImageFromStream(stream)
Example #20
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolTextCtrlImage(): stream = cStringIO.StringIO(getToolTextCtrlData()) return ImageFromStream(stream)
Example #21
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolStaticTextImage(): stream = cStringIO.StringIO(getToolStaticTextData()) return ImageFromStream(stream)
Example #22
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolStaticLineImage(): stream = cStringIO.StringIO(getToolStaticLineData()) return ImageFromStream(stream)
Example #23
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolStaticBoxSizerImage(): stream = cStringIO.StringIO(getToolStaticBoxSizerData()) return ImageFromStream(stream)
Example #24
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolStaticBoxImage(): stream = cStringIO.StringIO(getToolStaticBoxData()) return ImageFromStream(stream)
Example #25
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolSplitterWindowImage(): stream = cStringIO.StringIO(getToolSplitterWindowData()) return ImageFromStream(stream)
Example #26
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolSpinCtrlImage(): stream = cStringIO.StringIO(getToolSpinCtrlData()) return ImageFromStream(stream)
Example #27
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolSpinButtonImage(): stream = cStringIO.StringIO(getToolSpinButtonData()) return ImageFromStream(stream)
Example #28
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolSpacerImage(): stream = cStringIO.StringIO(getToolSpacerData()) return ImageFromStream(stream)
Example #29
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolSliderImage(): stream = cStringIO.StringIO(getToolSliderData()) return ImageFromStream(stream)
Example #30
Source File: images.py From admin4 with Apache License 2.0 | 5 votes |
def getToolRootImage(): stream = cStringIO.StringIO(getToolRootData()) return ImageFromStream(stream)