Debian Codegraph @

src/python/Tests/test_api.py

raw symbols SCIP
1 from Tkinter import *
2 import qutesheet as q
3
4 disp = ""
5
6 disp += "first_col = " + str(q.first_col) + "\n"
7 disp += "first_row = " + str(q.first_row) + "\n"
8 disp += "num_rows = " + str(q.num_rows) + "\n"
9 disp += "num_cols = " + str(q.num_cols) + "\n"
10 disp += "total_rows = " + str(q.total_rows) + "\n"
11 disp += "total_cols = " + str(q.total_cols) + "\n"
12
13 disp += "\n"
14 disp += "text() =\n"
15 disp += q.text()
16 disp += "\n"
17 disp += "selection_text() =\n"
18 disp += q.selection_text()
19
20 disp += "\n"
21 disp += "selection_by_rows() =\n"
22 disp += str(q.selection_by_rows())
23
24 disp += "\n"
25 disp += "selection_full_rows() =\n"
26 disp += str(q.selection_full_rows())
27
28 disp += "\n"
29 disp += "selection_full_rows_sorted() =\n"
30 disp += str(q.selection_full_rows_sorted())
31
32 disp += "\n"
33 disp += "all_rows() =\n"
34 disp += str(q.all_rows())
35 disp += "\n"
36 disp += "all_rows_sorted() =\n"
37 disp += str(q.all_rows_sorted())
38
39 disp += "\n"
40 disp += "selection_by_cols() =\n"
41 disp += str(q.selection_by_cols())
42
43 disp += "\n"
44 disp += "selection_full_cols() =\n"
45 disp += str(q.selection_full_cols())
46
47 disp += "\n"
48 disp += "all_cols() =\n"
49 disp += str(q.all_cols())
50
51 disp += "\n"
52 disp += "cells_selection_by_row() =\n"
53 disp += str(q.cells_selection_by_row())
54
55 disp += "\n"
56 disp += "cells_all_by_row() =\n"
57 disp += str(q.cells_all_by_row())
58
59 disp += "\n"
60 disp += "cells_selection_by_col() =\n"
61 disp += str(q.cells_selection_by_col())
62
63 disp += "\n"
64 disp += "cells_all_by_col() =\n"
65 disp += str(q.cells_all_by_col())
66
67
68 root = Tk()
69 root.title("Test API")
70 text = Text(root)
71 text.insert(INSERT, disp, "a")
72 text.pack(fill=BOTH, expand=1)
73
74 root.mainloop()