MCPcopy Index your code
hub / github.com/initialcommit-com/git-sim / create_zone_text

Method create_zone_text

src/git_sim/rm.py:52–118  ·  view source on GitHub ↗
(
        self,
        firstColumnFileNames,
        secondColumnFileNames,
        thirdColumnFileNames,
        firstColumnFiles,
        secondColumnFiles,
        thirdColumnFiles,
        firstColumnFilesDict,
        secondColumnFilesDict,
        thirdColumnFilesDict,
        firstColumnTitle,
        secondColumnTitle,
        thirdColumnTitle,
        horizontal2,
    )

Source from the content-addressed store, hash-verified

50 self.show_outro()
51
52 def create_zone_text(
53 self,
54 firstColumnFileNames,
55 secondColumnFileNames,
56 thirdColumnFileNames,
57 firstColumnFiles,
58 secondColumnFiles,
59 thirdColumnFiles,
60 firstColumnFilesDict,
61 secondColumnFilesDict,
62 thirdColumnFilesDict,
63 firstColumnTitle,
64 secondColumnTitle,
65 thirdColumnTitle,
66 horizontal2,
67 ):
68 for i, f in enumerate(firstColumnFileNames):
69 text = (
70 m.Text(
71 self.trim_path(f),
72 font=self.font,
73 font_size=24,
74 color=self.fontColor,
75 )
76 .move_to(
77 (firstColumnTitle.get_center()[0], horizontal2.get_center()[1], 0)
78 )
79 .shift(m.DOWN * 0.5 * (i + 1))
80 )
81 firstColumnFiles.add(text)
82 firstColumnFilesDict[f] = text
83
84 for j, f in enumerate(secondColumnFileNames):
85 text = (
86 m.Text(
87 self.trim_path(f),
88 font=self.font,
89 font_size=24,
90 color=self.fontColor,
91 )
92 .move_to(
93 (secondColumnTitle.get_center()[0], horizontal2.get_center()[1], 0)
94 )
95 .shift(m.DOWN * 0.5 * (j + 1))
96 )
97 secondColumnFiles.add(text)
98 secondColumnFilesDict[f] = text
99
100 for h, f in enumerate(thirdColumnFileNames):
101 text = (
102 m.MarkupText(
103 "<span strikethrough='true' strikethrough_color='"
104 + self.fontColor
105 + "'>"
106 + self.trim_path(f)
107 + "</span>",
108 font=self.font,
109 font_size=24,

Callers

nothing calls this directly

Calls 1

trim_pathMethod · 0.80

Tested by

no test coverage detected