📄 textbox_test.py
字号:
import PicoGUIapp = PicoGUI.Application('Textbox Test')tb = app.addWidget('scrollbox').addWidget('Textbox','inside')tb.side = 'all'tb.text = """Beastie Boys - Just a TestLike a flag at half mast as frames click fastNot a thing will last as past is pastLike stacks of thoughts that got played and wornUsed over and over till they were tired and tornLike a broken clock that can't tell timeLike a thick ass book that's filled with wack rhymesLike a scorching blaze that burned the sandLike a band that planned and planned and plannedAnd flew down like a raven in the dark of nightAnd snatched up the worm helpless to fightAnd brought it back to the nest singing microphone checkOne two one two this is just a testLike sand in one hand You can't hold for longLike scheming on a plan that goes all wrongLike fudge and caramel they're not the sameAnd it's a shame all you talk is gameYou act like a diamond waiting to be setIn a gold ring, as if, I betAs time goes by in this give and takeAs long as I learn I will make mistakesWhat do I want? What do I need?Why do I want it? What's in it for me?It's the imagery of technologyIs what you get is what you seeDon't worry your mindWhen you give it your bestOne two one two this is just a test--------8<--------The formal name is "All-purpose Humanoid Fighting Machine - Android Evangelion" (HANYOU HITOGATA KESSEN HEIKI - JINZOU NINGEN EVANGELION). 14 years of time and an astronomical amount of money were used to build the Evangelion in order to carry out the Instrumentality Project. Able to both deploy and neutralize an A. T. Field, it is the only fighting force that humans have to counter the Angels. It operates on electric power, and is limited to about 5 minutes of active time without external supply. Therefore it is normally supplied with electrical power through the umbilical cable. (The Evangelion Mass-Production Models from Eva-05 onward are equipped with the S2 engine and thus do not need this cable.) Originally the Eva do not have souls. For this reason, the soul of Yui Ikari was made to dwell in Eva-01. The name Evangelion is thought to derive from "Eve", wife of Adam in the Old Testament, and "Evangel", the Greek word for "gospel". Source: The End of Evangelion : Glossary contained within The End of Evangelion - Theatrical Program.--------8<--------Pink Floyd - Wish You Were Hereso, so you think you can tellheaven from hellblue skies from paincan you tell a green fieldfrom a cold steel raila smile from a veildo you think you can tell?and did they get you to trade your heroes for ghosts?hot ashes for trees?hot air for a cool breeze?cold comfort for change?and did you exchange a walk on part in the warfor a lead role in a cage?how i wishhow i wish you were herewe're just two lost souls swimming in a fish bowlyear after yearrunning over the same old groundwhat have we found?the same old fearswish you were here-- The End --"""app.run()print "Testing text readback:\n\n\"" + app.server.getstring(tb.text)[:-1] + "\"\n";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -