2022-06-28 12:16:28 +03:00
import customtkinter
2022-10-05 11:35:41 +03:00
#customtkinter.set_widget_scaling(2)
#customtkinter.set_window_scaling(2)
#customtkinter.set_spacing_scaling(2)
2022-06-30 16:53:32 +03:00
customtkinter . set_appearance_mode ( " dark " )
2022-06-28 12:16:28 +03:00
app = customtkinter . CTk ( )
2022-06-30 16:53:32 +03:00
app . title ( " test_scrollbar.py " )
2022-06-28 12:16:28 +03:00
app . grid_rowconfigure ( 0 , weight = 1 )
2022-10-05 11:35:41 +03:00
app . grid_columnconfigure ( ( 0 , 1 ) , weight = 1 )
2022-06-30 16:53:32 +03:00
2022-10-05 11:35:41 +03:00
textbox_1 = customtkinter . CTkScrolledTextbox ( app , fg_color = None , corner_radius = 0 )
textbox_1 . grid ( row = 0 , column = 0 , sticky = " nsew " )
textbox_1 . insert ( " 0.0 " , " Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \n \n " * 20 )
2022-06-30 16:53:32 +03:00
2022-10-05 11:35:41 +03:00
frame_1 = customtkinter . CTkFrame ( app , corner_radius = 0 )
frame_1 . grid ( row = 0 , column = 1 , sticky = " nsew " )
2022-06-30 16:53:32 +03:00
frame_1 . grid_rowconfigure ( ( 0 , 1 ) , weight = 1 )
2022-10-05 11:35:41 +03:00
frame_1 . grid_columnconfigure ( 0 , weight = 1 )
textbox_2 = customtkinter . CTkScrolledTextbox ( frame_1 , wrap = " none " )
textbox_2 . grid ( row = 0 , column = 0 , sticky = " nsew " , padx = 20 , pady = 20 )
textbox_2 . insert ( " 0.0 " , " Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \n \n " * 20 )
2022-06-28 12:16:28 +03:00
app . mainloop ( )