(self)
| 217 | pass |
| 218 | |
| 219 | def display(self): |
| 220 | self.y_scroll = Scrollbar(gui) |
| 221 | self.x_scroll = Scrollbar(gui, orient=HORIZONTAL) |
| 222 | self.y_scroll.grid(row=0, column=11, sticky="NS", pady=(22, 0), padx=(0, 20)) |
| 223 | self.x_scroll.grid( |
| 224 | row=1, sticky="EW", columnspan=10, padx=(20, 0), pady=(0, 30) |
| 225 | ) |
| 226 | self.output = Text( |
| 227 | gui, |
| 228 | height=12, |
| 229 | bg="light cyan", |
| 230 | width=82, |
| 231 | yscrollcommand=self.y_scroll.set, |
| 232 | xscrollcommand=self.x_scroll.set, |
| 233 | wrap="none", |
| 234 | ) |
| 235 | # self.output = ScrolledText(gui, height=12, bg="light cyan", width=82, wrap='none', |
| 236 | # xscrollcommand=x_scroll.set) # only for y scroll |
| 237 | self.output.grid( |
| 238 | row=0, |
| 239 | column=0, |
| 240 | columnspan=10, |
| 241 | sticky="n", |
| 242 | ipady=10, |
| 243 | padx=(20, 0), |
| 244 | pady=(22, 0), |
| 245 | ) |
| 246 | self.y_scroll.config(command=self.output.yview) |
| 247 | self.x_scroll.config(command=self.output.xview) |
| 248 | self.copy_button = Button( |
| 249 | gui, |
| 250 | text="COPY", |
| 251 | fg="black", |
| 252 | width=18, |
| 253 | command=self.cpy, |
| 254 | font="calibre", |
| 255 | bd=3, |
| 256 | ) |
| 257 | self.copy_button.grid( |
| 258 | row=2, column=3, sticky="SW", ipady=10, pady=(10, 18), padx=15 |
| 259 | ) |
| 260 | self.generate_button = Button( |
| 261 | gui, |
| 262 | text="RE-GENERATE", |
| 263 | width=23, |
| 264 | fg="black", |
| 265 | command=lambda: self.generate(), |
| 266 | font="calibre", |
| 267 | bd=3, |
| 268 | ) |
| 269 | self.generate_button.grid(row=2, column=4, ipady=10, pady=(10, 18), padx=15) |
| 270 | |
| 271 | self.change_values_button = Button( |
| 272 | gui, |
| 273 | text="CHANGE CONSTRAINT", |
| 274 | fg="black", |
| 275 | command=lambda: self.take_input(), |
| 276 | width=20, |
no test coverage detected