Beispiel #1
0
def test():
    app = plaskapp('0.0.0.0', 5000)

    p = pypage('imgtest', 'http://127.0.0.1:5000/', pyhtmlstyle.margin_left)
    p.add_page_route('/')
    file = open('./res/text.png', 'rb')
    f = pyfile(file.read(), 'text.png', p)
    file.close()
    b = pyimg(f.url(), 'img', pyhtmlstyle.margin_left, p)

    p.init()

    app.run()
Beispiel #2
0
def test():
    app = plaskapp('0.0.0.0', 5000)

    p = pypage('buttontest', 'http://127.0.0.1:5000/', pyhtmlstyle.margin_left)
    p.add_page_route('/')
    b = pybutton('button', 'button', pyhtmlstyle.margin_left, p)

    #uievent event
    #b.register_uievent()

    p.init()

    app.run()
Beispiel #3
0
def test():
    app = plaskapp('0.0.0.0', 5000)

    p = pypage('audiotest', 'http://127.0.0.1:5000/', pyhtmlstyle.margin_left)
    p.add_page_route('/')
    file = open('./res/normal_way.mp3', 'rb')
    f = pyfile(file.read(), 'normal_way.mp3', p)
    file.close()
    b = pyaudio(f.url(), 'audio', pyhtmlstyle.margin_left, p)

    p.init()

    app.run()
Beispiel #4
0
def test():
    app = plaskapp('0.0.0.0', 5000)

    p = pypage('videotest', 'http://127.0.0.1:5000/', pyhtmlstyle.margin_left)
    p.add_page_route('/')
    file = open('./res/xpg.mp4', 'rb')
    f = pyfile(file.read(), 'xpg.mp4', p)
    file.close()
    b = pyvideo(f.url(), 'video', pyhtmlstyle.margin_left, p)

    p.init()

    app.run()
Beispiel #5
0
def test():
	app = plaskapp('0.0.0.0', 5000)


	p = pypage('audiotest', 'http://127.0.0.1:5000/', pyhtmlstyle.margin_left)
	p.add_page_route('/')
	file = open('./res/normal_way.mp3', 'rb')
	f = pyfile(file.read(), 'normal_way.mp3', p)
	file.close()
	b = pyaudio(f.url(), 'audio', pyhtmlstyle.margin_left, p)

	p.init()

	app.run()
Beispiel #6
0
def test():
	app = plaskapp('0.0.0.0', 5000)


	p = pypage('imgtest', 'http://127.0.0.1:5000/', pyhtmlstyle.margin_left)
	p.add_page_route('/')
	file = open('./res/text.png', 'rb')
	f = pyfile(file.read(), 'text.png', p)
	file.close()
	b = pyimg(f.url(), 'img', pyhtmlstyle.margin_left, p)

	p.init()

	app.run()
Beispiel #7
0
def test():
	app = plaskapp('0.0.0.0', 5000)


	p = pypage('videotest', 'http://127.0.0.1:5000/', pyhtmlstyle.margin_left)
	p.add_page_route('/')
	file = open('./res/xpg.mp4', 'rb')
	f = pyfile(file.read(), 'xpg.mp4', p)
	file.close()
	b = pyvideo(f.url(), 'video', pyhtmlstyle.margin_left, p)

	p.init()

	app.run()