daboide Commit Revision 419 Date: 2006-01-31 16:27:05 -0800 (Tue, 31 Jan 2006) Author: ed
Changed: U trunk/Editor.py D trunk/funcbtn.png
Log: Removed the separate image file for the function button, and replaced it with an image stream in Editor.py.
Diff: Modified: trunk/Editor.py =================================================================== --- trunk/Editor.py 2006-01-31 19:59:47 UTC (rev 418) +++ trunk/Editor.py 2006-02-01 00:27:05 UTC (rev 419) @@ -161,11 +161,14 @@ pnl = dabo.ui.dPanel(self) self.Sizer.append1x(pnl) pnl.Sizer = dabo.ui.dSizer("v") + + pnl.DynamicBackColor = self.junk + self._lastPath = os.getcwd() super(EditorForm, self).afterInit() self.Caption = "Dabo Editor" self.funcButton = dabo.ui.dImage(pnl, ScaleMode="Clip") - self.funcButton.Picture = "funcbtn.png" + self.funcButton.Picture = dabo.ui.imageFromData(funcButtonData()) # Make it square self.funcButton.Width = self.funcButton.Height = 22 pnl.Sizer.append(self.funcButton, halign="left", border=4) @@ -177,8 +180,17 @@ if self.CurrentEditor: self.CurrentEditor.setFocus() self.fillMenu() + + self.DynamicCaption = self.dynCap + def junk(self): + return dabo.dColors.randomColor() + + def dynCap(self): + import time + return time.ctime() + def onFuncButton(self, evt): evt.stop() flist = self.CurrentEditor.getFunctionList() @@ -457,6 +469,35 @@ _("References the currently active editor (dEditor)")) +def funcButtonData(): + return \ +'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x16\x00\x00\x00\x16\x08\x02\ +\x00\x00\x00K\xd6\xfbl\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\ +\x02\'IDAT8\x8duS1\xae\xea@\x0c\xf4z\x1d\x8at\xd0 $J\xf4Z*()\xa8h\x80\x8e\ +\x03 (\xa88\x01\x12\xe2\x08\xdc\x81\x86\x1b\xd0Sr\x01. .AT. G\x81 R\x02\x9b\xec/&\ +\xcf\xec\x07=\x17Q\xe4\xb5g\xed\x99\x1d\xb3\xd9l\xe8\x8f0\xc6\x10\x91\xf7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1a\xcb\xe5\x12\xf7\x95\x04+\x91\x18\x01\x1b\xf1o \x1fEQ\xb7\xdb\ +]\xaf\xd7???\xab\xd5\xaa\xd3\xe9\xc0\rX\xb04\x98\x88 \xab\x14~K3\x1c\x0e/\ +\x97\xcbx<\xa6_\x8f\xfdg\xb3\xa2(\xd4\xdd:|\xe8\x17\x80\xce\xe7s5\xbe\xf7>\ +\xcfs"\x12\xfc%I\xe2\x9c\xfbxW\xdf\x02\x87\x91e\xd9\xf3\xf9,!v\xbb\xdd_u\xdf\ +\xf1m\xe5\x7f\xd0\xdbI\xf9\xcd\xb6\xabn\x00\x00\x00\x00IEND\xaeB`\x82' + + + def main(): files = sys D.OT argv[1:] app = dabo.dApp()
Deleted: trunk/funcbtn.png
©2006 Ed Leafe |