(win)
| 1345 | |
| 1346 | |
| 1347 | def lorem_ipsum(win): |
| 1348 | text = [ |
| 1349 | 'Lorem ipsum', |
| 1350 | 'dolor sit amet,', |
| 1351 | 'consectetur', |
| 1352 | 'adipiscing elit,', |
| 1353 | 'sed do eiusmod', |
| 1354 | 'tempor incididunt', |
| 1355 | 'ut labore et', |
| 1356 | 'dolore magna', |
| 1357 | 'aliqua.', |
| 1358 | ] |
| 1359 | maxy, maxx = win.getmaxyx() |
| 1360 | for y, line in enumerate(text[:maxy]): |
| 1361 | win.addstr(y, 0, line[:maxx - (y == maxy - 1)]) |
| 1362 | |
| 1363 | |
| 1364 | class TextboxTest(unittest.TestCase): |
no test coverage detected
searching dependent graphs…