Python Forum
[Tkinter] Indentation for Tkinter-made Text Editor
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Indentation for Tkinter-made Text Editor
#5
If you are doing this after code has already written on the line above, you should be able to do the auot indent with the insert.
Going by the documentation you can use a column, row index for positioning.
Here is a link on stackoverflow. The first response has an example.
And a link to EffBot
As a side not python3's f-string recognizes   as a space character. I found this out experimenting on something for displaying. I do not know about the tkinters text widget but, the labels will use it.
Stackoverflow
Tikinter Book Text Widget
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


Reply


Messages In This Thread
RE: Indentation for Tkinter-made Text Editor - by menator01 - Jun-08-2020, 03:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I run an interface I made using PyQt5 and a Map program I made using Tkinter bki 6 1,178 Nov-09-2023, 11:12 PM
Last Post: bki
  [Tkinter] Updating tkinter text BliepMonster 5 6,081 Nov-28-2022, 01:42 AM
Last Post: deanhystad
  [Tkinter] The Text in the Label widget Tkinter cuts off the Long text in the view malmustafa 4 4,942 Jun-26-2022, 06:26 PM
Last Post: menator01
  tkinter change the text of the checkbox zazas321 1 3,857 Sep-17-2021, 06:19 AM
Last Post: zazas321
  tkinter text widget word wrap position chrisdb 6 7,600 Mar-18-2021, 03:55 PM
Last Post: chrisdb
  [Tkinter] tkinter.Menu – How to make text-variable? Sir 3 5,668 Mar-10-2021, 04:21 PM
Last Post: Sir
Photo Tkinter TEXT background image _ShevaKadu 5 7,803 Nov-02-2020, 10:34 AM
Last Post: joe_momma
  tkinter | Button color text on Click Maryan 2 3,400 Oct-09-2020, 08:56 PM
Last Post: Maryan
  [Tkinter] Text Upload LearningLittlebyLittle 0 2,063 Sep-04-2020, 07:55 PM
Last Post: LearningLittlebyLittle
  [Tkinter] Syntax Highlighting in Text Editor ShakeyPakey 4 4,989 Jun-10-2020, 02:23 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020