littlewhitecloud / TkTerminal

A terminal emulator widget written in Python using tkinter
MIT License
15 stars 2 forks source link

```Extension``` styles #45

Closed littlewhitecloud closed 1 year ago

littlewhitecloud commented 1 year ago

Flags

Tests /

Note @Moosems Would you like to build some built-in styles? Or take part in writing config ui? (Also, are you good at json? I need some help)

littlewhitecloud commented 1 year ago

image Not bad LOL

littlewhitecloud commented 1 year ago

Are you interested in checking this out? @Moosems I am currently working on this. After working out this I think we should do some bug fix and the tktermwidget is almost stable!

Moosems commented 1 year ago

After getting my sleep, sure.

littlewhitecloud commented 1 year ago

Thank you!

Moosems commented 1 year ago

Anytime my friend 😁

littlewhitecloud commented 1 year ago

Have a good rest and I will improve it.

Moosems commented 1 year ago

Scroll bar:

row = 1 if horizontal else 0 col = 0 if horizontal else 1 self.grid(row=row, column=col)

littlewhitecloud commented 1 year ago

Look strange after using the code.

image

littlewhitecloud commented 1 year ago

image Look more beautiful now.

littlewhitecloud commented 1 year ago

@Moosems Can help figure out why these buttons didn't use the correct font after I do

window.option_add("*font", ("Cascadia Mono", 9, "normal))

image

Moosems commented 1 year ago

None of the items have the font because you are using TTK widgets. You need to use Style().theme_configure("TButton", "font", font).

littlewhitecloud commented 1 year ago

None of the items have the font because you are using TTK widgets. You need to use Style().theme_configure("TButton", "font", font).

But there are only two buttons don't have the correct font.

littlewhitecloud commented 1 year ago

None of the items have the font because you are using TTK widgets. You need to use Style().theme_configure("TButton", "font", font).

Can you make a suggestion?


AttributeError: 'Style' object has no attribute 'theme_configure'
Moosems commented 1 year ago

The others are images do the font doesn't affect them...

Moosems commented 1 year ago

Are you using sv_ttk?

littlewhitecloud commented 1 year ago

yes

littlewhitecloud commented 1 year ago

The others are images do the font doesn't affect them...

I didn't mean the buttons with image don't follow the font, I mean the buttons in the red box don't follow font

littlewhitecloud commented 1 year ago

Are you using sv_ttk?

I opened an issues on the sv_ttk github repo. https://github.com/rdbende/Sun-Valley-ttk-theme/issues/93

littlewhitecloud commented 1 year ago

nevermind about it, @Moosems do you want to add some built-in styles?

Moosems commented 1 year ago

Possibly, I don't personally see myself using them that much though, I'd much rather prefer to just configure the style of the terminal.

littlewhitecloud commented 1 year ago

Okay, it is just a little extension

littlewhitecloud commented 1 year ago

I think it is almost finish. All todos are finished. Need to review it again and do some bug fix on this.

littlewhitecloud commented 1 year ago

And then, let's go to bug fix!

littlewhitecloud commented 1 year ago

I am going to sleep lol. Tomorrow I have to go to school and then I will have summer holidays, at that time I will review it.