Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(5)  |  Derive(0)  |  Import(1)

src/a/i/AIGO-0.1.0/AIGO/gui/main.py   AIGO(Download)
 
from AIGO.gui                     import gui, popups, app, project, grid
from AIGO.gui.app                 import PNGtoBitmap
 
def createPlotFA(project):
            bmp=getattr(myApp.frame.notebook, 'bitmap_Venn_%s' % aspect)
            size=bmp.GetSize().Get()
            bmp.SetBitmap(PNGtoBitmap(allFigName[aspect], resize=size))
    else:
        for aspect in allAspect:
            bmp=getattr(myApp.frame.notebook, 'bitmap_FuncSim_%s' % aspect)
            size=bmp.GetSize().Get()
            bmp.SetBitmap(PNGtoBitmap(allFigName[aspect][(name1,name2)], resize=size))
    else:
        for aspect in allAspect:
            #size=self.frame.notebook.bitmap_Plot.GetSize().Get()
            #self.frame.notebook.bitmap_Plot.SetBitmap(PNGtoBitmap(figName, resize=size))
            self.frame.notebook.bitmap_Plot.SetBitmap(PNGtoBitmap(figName))
            self.frame.notebook.bitmap_Plot.CenterOnParent(wx.HORIZONTAL)
 
 
        size=self.ViewFrame.bitmap.GetSize().Get()
        self.ViewFrame.bitmap.SetBitmap(PNGtoBitmap(figName, resize=size))
        self.ViewFrame.bitmap.CenterOnParent(wx.BOTH)
        self.ViewFrame.Show(True)