-
Notifications
You must be signed in to change notification settings - Fork 317
Closed
Description
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
Exception:
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in
that dimension.
Parameter name: left
Actual value was -2.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------
PS C:\Users\POTTER270\OneDrive - Great Western Academy\A-Level\Computer Science\Python\Guizero\guizero-master\Guizero_projects> "C:/Program Files/Python312/python.exe" "c:/Users/POTTER270/OneDrive - Great Western Academy/A-Level/Computer Science/Python/Guizero/guizero-master/Guizero_projects/2 Wanted_poster.py"
At line:1 char:42
+ ... python.exe" "c:/Users/POTTER270/OneDrive - Great Western Academy/A-Le ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token '"c:/Users/POTTER270/OneDrive - Great Western Academy/A-Level/Computer
Science/Python/Guizero/guizero-master/Guizero_projects/2 Wanted_poster.py"' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedTokenScreenshot
Environment data
PS Version: 5.1.19041.6216
PS HostName: ConsoleHost
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 127
BufferHeight: 11Steps to reproduce
from guizero import App, Text, Picture
app = App("Wanted!")
app.bg = "#FBFBD0"
wanted_text = Text(app, "WANTED")
wanted_text.text_size = 50
wanted_text.font = "Courier"
criminal = Picture(app, image="Wanted.png")
app.display()
Expected behavior
The picture is meant to display, witht he WANTED text above, in an app called Wanted!
Actual behavior
Error message, shown above with screenshot and exception
Metadata
Metadata
Assignees
Labels
No labels