def visualTest(): app = cimarron.skin.App() cimarron.config() win = cimarron.skin.Window(parent=app) foo = FooController(parent=win, value=dict(foo=1,bar=2,baz=3)) app.show() app.run()
def visualTest(): app = cimarron.skin.App() cimarron.config() win = cimarron.skin.Window(parent=app) foo = FooController(parent=win, value=dict(foo=1, bar=2, baz=3)) app.show() app.run()
def setUp(self): cimarron.config() self.app = cimarron.skin.App() self.win1 = cimarron.skin.Window(parent=self.app) self.win2 = cimarron.skin.Window(parent=self.app) self.app.show()
# # PAPO is free software; you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # # PAPO is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # PAPO; if not, write to the Free Software Foundation, Inc., 59 Temple Place, # Suite 330, Boston, MA 02111-1307 USA from papo import cimarron cimarron.config() from windows import Main def main(): app = cimarron.skin.App() w = Main(parent=app) w.show() app.run() if __name__ == '__main__': main()
def setUp(self): cimarron.config() self.app = cimarron.skin.App() super(abstractTestBasic, self).setUp()
# terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # # PAPO is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # PAPO; if not, write to the Free Software Foundation, Inc., 59 Temple Place, # Suite 330, Boston, MA 02111-1307 USA import unittest from papo import cimarron cimarron.config() skin = cimarron.skin __all__ = ('TestHelloWorld',) class TestHelloWorld(unittest.TestCase): def setUp(self): self.app = skin.App() def testSkinArgv(self): self.assertEqual(skin.__name__, 'papo.cimarron.skins.gtk2') def testWindow(self): self.win = skin.Window() def testWindowParent(self): self.win = skin.Window(parent=self.app) self.assertEqual(self.app, self.win.parent) self.assertEqual(list(self.app.children), [self.win])