Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
Ghostrgb opened this issue May 22, 2025 · 2 comments
Closed
3 tasks done

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

Ghostrgb opened this issue May 22, 2025 · 2 comments

Comments

@Ghostrgb
Copy link

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

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label May 22, 2025
@Ghostrgb
Copy link
Author

Все работало отлично, но как только захотела установить смену темы вылезла ошибка представленная на скриншоте.

@daxian-dbw
Copy link
Member

The report URL https://github.com/lzybkr/PSReadLine/issues/new indicates you are using a very old version of PSReadLine module, 2.0.0-beta2 or prior. Please upgrade to the latest v2.3.6 and the issue is likely resolved in the new version.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants