Skip to content

Commit 98ff34f

Browse files
committed
Added small cursor update
1 parent b44b3fd commit 98ff34f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from tktools import os, tk
33
from tkinter import colorchooser
44

5-
version = '0.0.1.4'
5+
version = '0.0.1.5'
66

77
print('Starting Fedit', version)
88
print('Home dir:', os.path.expanduser('~'))
@@ -42,7 +42,7 @@ def set_root_title(title):
4242
def update_theme(theme, text_theme, custom=0):
4343
print('Custom:', custom, 'BG:', theme, 'FG:', text_theme)
4444
root.config(bg=theme)
45-
widget_maintextedit.config(bg=theme, fg=text_theme)
45+
widget_maintextedit.config(bg=theme, fg=text_theme, insertbackground=text_theme)
4646
frame_menubar.config(bg=theme)
4747
for button in menubar.buttons:
4848
menubar.buttons[button]['raw'].config(bg=theme, fg=text_theme)

notes.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
For a colour picker:
22
# from tkinter import colorchooser
3-
# colour_tuple = colorchooser.askcolor()
3+
# colour_tuple = colorchooser.askcolor()
4+
5+
To change the colour of the cursor:
6+
# textwidget.config(bg='#00ff00', insertbackground='#ff00ff')
7+
insertbackground is what the colour will be.

0 commit comments

Comments
 (0)