简体   繁体   中英

How to upsidedown tab tag in notebook in by using tkinter

I'm setting up a Notebook by using tkinter, the tab tags shows like TT, is there a way to upsidedown the tag , make it to I__I ?

import tkinter as tk
from tkinter import ttk

root = tk.Tk()

style = ttk.Style(root)
style.configure('TNotebook', tabposition='ws')

notebook = ttk.Notebook(root, style='TNotebook')
f1 = tk.Frame(notebook, bg='red', width=200, height=200)
f2 = tk.Frame(notebook, bg='blue', width=200, height=200)
notebook.add(f1, text='Frame 1')
notebook.add(f2, text='Frame 2')
notebook.pack()

root.mainloop()

See here:

在此处输入图片说明

I can just suggest you a workaround -

  • go to http://www.upsidedowntext.com/ and get inverted letters.
  • copy the letters and paste it into your tab tags fields.
  • I've checked in pycharm and it's working fine.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM