Billy

Results 49 comments of Billy

i will implement a cleaner api for this!

@Moosems according to the tkextrafont docs, for the linux support of library they have specified some prerequisites > This example is given for Ubuntu 20.04, change the names of packages...

merging issue #86 as both mention same problem

this issue has been fixed for number literals, but issue remains with strings. one possible good solution is to check tags under cursor with `text.tags_names(index)` includes `Token.String`, `Token.Number`, `Token.Comment`, `Token.Punctuation`....

https://github.com/billyeatcookies/cupcake/assets/70792552/745bc60d-91f7-49db-860d-f51027a2d849

we are using pyinstaller to make the executables currently. For making setup files, we can use - [innosetup](https://jrsoftware.org/isinfo.php) - [nsis](https://nsis.sourceforge.io/) some modifications shall be done to the github workflows

@Moosems a really good suggestion! that also speeds up the editor a lot! also tried it out ```py import tkinter as tk class TextPeer(tk.Text): "boakly's implementation: https://stackoverflow.com/a/58290100/14507110" count = 0...

@Moosems I had an attempt to optimize the minimap further by using lines instead of text (so to render the details less) ```py self.text = self.tw.get_all_text() y = 0 offset...

```bash Average execution time: 0.000263 seconds ``` ```py ... text_widget2 = TextPeer(text_widget1, font="Ariel 5", width=30) text_widget2.pack(side=tk.LEFT, fill=tk.Y) import timeit def measure_widget_performance(): text_widget1.insert("1.0", "This is the first text widget.", "red") execution_time...

```py execution_time = timeit.timeit(measure_widget_performance, number=1000) print(f"Average execution time: {execution_time / 10:.6f} seconds") ``` ``` Average execution time: 0.000550 seconds ```