Comments (7)
I want to draw a circle then delete the previous circle and draw a new one in a different postion one at a time. Manual says returns id? How do i find the id of the circle I want to delete? using delete() statement? Not much mention of this in the docs and examples.
from guizero.
Using the example from the docs for drawing a rect. An oval (or circle) is the same.
from guizero import App, Drawing
app = App()
drawing = Drawing(app)
rect_id = drawing.rectangle(10, 10, 60, 60, color="blue")
drawing.delete(rect_id)
app.display()
Providing a description and example in the issue text rather than the title is much more helpful.
Removing bug label.
from guizero.
from guizero.
"mate" ?
The documentation describes the return values and parameters for all these classes and functions. This is how I was able to provide you with an example to fix your problem.
It is not the job of the documentation to cover every eventuality nor my job to provide you with solutions to your problems.
from guizero.
from guizero.
You're welcome
from guizero.
Closing
from guizero.
Related Issues (20)
- Slider hide/show bug HOT 10
- Add options properties to Combo, ButtonGroup & ListBox HOT 1
- You cant programmatically add items to a ListBox that isn't enabled HOT 1
- Error (typo) on the book manual HOT 1
- Documentation Issue HOT 2
- Update installation documentation for Raspberry Pi 'bookworm' OS HOT 6
- An option in the question dialog to hide the input HOT 1
- effbot.org is dead (tk_event) HOT 1
- Uplift guizero to new Python versions
- Example in tutorial raises error HOT 1
- Migrate guizero build process HOT 6
- Showing and hiding large numbers of elements causes black screen HOT 1
- Theme Support HOT 1
- Updating Element Values of Method-Created Objects within a Drawing
- args for widgets that support command HOT 3
- app.box_color, feature! HOT 5
- Strange ordering of 2D-List in Tic-Tec-Toe program HOT 2
- Rename master to main HOT 2
- Add the ability to shape Waffles as a rectangle, not only as a square or dot
- When App is created visible=False, ButtonGroup radiobutton indicators are grey, not blue HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guizero.