kopia lustrzana https://github.com/peterhinch/micropython-micro-gui
Grid control: backport __call__ from micropython-touch.
rodzic
174b53ba54
commit
91e5a7b3b0
|
@ -1290,8 +1290,8 @@ Read access:
|
||||||
It is important to note that array index notation always returns an iterator,
|
It is important to note that array index notation always returns an iterator,
|
||||||
even if only a single element is required. One way to access a single element is
|
even if only a single element is required. One way to access a single element is
|
||||||
```python
|
```python
|
||||||
it = grid[0 : 0]
|
it = grid[0 , 0]
|
||||||
label = next(it)
|
label = next(it) # Label at row == 0, col == 0
|
||||||
```
|
```
|
||||||
however function call syntax is more intuitive:
|
however function call syntax is more intuitive:
|
||||||
```python
|
```python
|
||||||
|
|
Ładowanie…
Reference in New Issue