Skip to content

Проблема с темой в приложении #4755

@Ghostrgb

Description

@Ghostrgb

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

Произошла ошибка. Сообщите об этой ошибке, указав данные ниже.
Напишите в GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Последние клавиши 200:
 a m s \ P y t h o n \ P y t h o n 3 1 3 \ p y t h o n . e x e ' Space ' c : \ U s e r s \ L e n o v o \ . v s c o d e \ e x t e 
n s i o n s \ m s - p y t h o n . d e b u g p y - 2 0 2 5 . 8 . 0 - w i n 3 2 - x 6 4 \ b u n d l e d \ l i b s \ d e b u g p y \ l a u n c h e r ' Space ' 1 0 6 5 3 ' Space ' - - ' Space ' c : \ U s e r s \ L e n o v o \ D e s k t o p \ S m a r t G r a d e 
\ m a i n _ a p p . p y ' Space Enter


Исключение:
System.ArgumentOutOfRangeException: Значение должно быть больше или равно нулю и меньше, чем размер буфера в данной размерности. 
Имя параметра: top
Фактическое значение было -1.
   в System.Console.SetCursorPosition(Int32 left, Int32 top)
   в Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   в Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   в Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   в Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
   в Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   в Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   в Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------

Screenshot

Image

Environment data

Python: 3.13.2
OS: Windows 10

Steps to reproduce

    root = ctk.CTk()
    root.title("My App")

    def on_theme_change(selected_theme):
        ctk.set_appearance_mode(selected_theme)

    theme_menu = ctk.CTkOptionMenu(
        master=root,
        values=["light", "dark", "system"],
        command=on_theme_change
    )
    theme_menu.set("system")  # Установка по умолчанию
    theme_menu.pack(pady=10, anchor="ne", padx=10)  # Можно заменить на pack() или grid()

Expected behavior

Actual behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions