Example #1
0
def main():
    app = wx.App(False)

    nomenclature_filter = parse("file_filter.json", "nomenclature_filter")
    filewalker = Filewalker(nomenclature_filter.file,
                            nomenclature_filter.prefix,
                            nomenclature_filter.suffix)
    frame = MainFrame(filewalker)
    frame.Layout()
    frame.Show(True)
    app.MainLoop()
Example #2
0
    def OnInit(self):
        logging.basicConfig( \
            # level = logging.DEBUG \
            filename = "remapper.log" \
            )

        Model.StaticInit()
        frame = MainFrame()
        frame.Show()

        return True
Example #3
0
def main():

    palette = [
        ('body', 'default', 'dark cyan', 'standout'),
        ('foot', 'light gray', 'black'),

        ('key', 'light cyan, bold', 'black', 'underline'),

        ('title', 'white, bold', 'dark cyan',),
        ('button', 'white, bold', 'dark cyan'),

        ('default_bold', 'bold', 'black',),
        ('reversed', 'standout', ''),
    ]

    splitter = ' | '

    footer_text = [
        ('default_bold', "Provisioning system"), splitter,
        ('key', "UP"), ", ",
        ('key', "DOWN"), " basic navigation", splitter,
        ('key', EXIT_KEY), " exits",
    ]

    footer = urwid.AttrMap(urwid.Text(footer_text), 'foot')
    top = urwid.Frame(
        urwid.AttrWrap(MainFrame(EXIT_KEY), 'body'), footer=footer
    )

    urwid.MainLoop(top, palette=palette).run()
Example #4
0
def main():
    adapter = ParserAdapter()
    main_frame = MainFrame(adapter)
    main_frame.draw()
Example #5
0
from varazslat import Varazslat
from osztaly import Osztaly
from data import Data
from frame import MainFrame


from Tkinter import *

data=Data()
data.read()

root = Tk()
root.geometry("350x300+300+300")
app = MainFrame(root)


i = 0
for oszt in data.classes:
  app.createClassButton(oszt, i%5 + 1, i/5)
  i =i +1
  print i
root.mainloop()
Example #6
0
from tkinter import *
from RBTree import RBT
from frame import MainFrame


def set_window(root):
    root.title('Red-Black-tree Visualization')
    root.resizable(True, True)


if __name__ == '__main__':
    root = Tk()
    set_window(root)

    rbt = RBT()
    frame = MainFrame(root, rbt, d=25, size=(800, 600))
    rbt.add_frame(frame)

    root.mainloop()
def main():
    app = DashboardApp()
    app.SetAppName("FOO BAR")
    frame = MainFrame(None, "Infinite Recharge Dashboard")
    frame.Show(True)
    app.MainLoop()
Example #8
0
from frame import MainFrame
import wx

if __name__ == '__main__':
    app = wx.App(False)
    frame = MainFrame(None)
    frame.Show(True)
    app.MainLoop()