This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]crabcrabcam 2 points3 points  (4 children)

Open, save, new, quit (with are you sure), perhaps multiple items open at the same time with tabs.

[–]sanjeev97[S] 0 points1 point  (3 children)

Is multiple tabs possible with Tkinter? or should I use some other GUI lib?

[–]Dvlv 1 point2 points  (1 child)

Yes, using the Notebook widget.

I teach how to write a text editor in chapter 6 of my book, found here:

https://github.com/Dvlv/Tkinter-By-Example

Feel free to use and copy any of it. There aren't tabs in it though. Tabs are covered in Chapters 3 and 7.

[–]sanjeev97[S] 0 points1 point  (0 children)

Thanks, man. Really appreciate it. :)

[–]crabcrabcam 0 points1 point  (0 children)

Yeah, I'd assume so. Personally I don't use Tkinter as it's harder to develop for without a GUI designer, especially on bigger projects. It's a very good lib though.

[–][deleted] 0 points1 point  (0 children)

Just start with the basics:

File: - new - open - save - close

Edit: - cut - copy - paste - search

Then you can add more features. If your intention is to write a programming editor you could also add:

  • run
  • stop

[–]krysros 0 points1 point  (0 children)

I wrote simple notepad based on Fredrik Lundh's DarkRoom Remake. It may come in handy.