Merge pull request #6482 from PySimpleGUI/Dev-latest
New Udemy Coupon. Added Listbox.set_index_color and Listbox.select_i…
This commit is contained in:
commit
0f32107272
9 changed files with 99 additions and 19 deletions
|
@ -25,9 +25,9 @@
|
|||
<span style="font-weight: normal;">
|
||||
apply coupon for discount:
|
||||
</span>
|
||||
9AF99B123C49D51EB547.
|
||||
62A4C02AB0A3DAB34388.
|
||||
</div>
|
||||
<button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=9AF99B123C49D51EB547','_blank');">
|
||||
<button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=62A4C02AB0A3DAB34388','_blank');">
|
||||
click here to visit course page
|
||||
</button>
|
||||
</div>
|
||||
|
@ -5583,6 +5583,24 @@ Metadata is an Element property that you can use at any time to hold any value
|
|||
|---|---|---|
|
||||
|(Any)| **return** | the current metadata value |
|
||||
|
||||
### select_index
|
||||
|
||||
Selects an index while providing capability to setting the selected color for the index to specific text/background color
|
||||
|
||||
```
|
||||
select_index(index,
|
||||
highlight_text_color = None,
|
||||
highlight_background_color = None)
|
||||
```
|
||||
|
||||
Parameter Descriptions:
|
||||
|
||||
|Type|Name|Meaning|
|
||||
|--|--|--|
|
||||
| int | index | specifies which item to change. index starts at 0 and goes to length of values list minus one |
|
||||
| str | highlight_text_color | color of the text when this item is selected. |
|
||||
| str | highlight_background_color | color of the background when this item is selected |
|
||||
|
||||
### set_cursor
|
||||
|
||||
Sets the cursor for the current Element.
|
||||
|
@ -5616,6 +5634,24 @@ Parameter Descriptions:
|
|||
|--|--|--|
|
||||
| bool | force | if True will call focus_force otherwise calls focus_set |
|
||||
|
||||
### set_index_color
|
||||
|
||||
Sets the color of a specific item without selecting it
|
||||
|
||||
```
|
||||
set_index_color(index,
|
||||
text_color = None,
|
||||
background_color = None)
|
||||
```
|
||||
|
||||
Parameter Descriptions:
|
||||
|
||||
|Type|Name|Meaning|
|
||||
|--|--|--|
|
||||
| int | index | specifies which item to change. index starts at 0 and goes to length of values list minus one |
|
||||
| str | text_color | color of the text for this item |
|
||||
| str | background_color | color of the background for this item |
|
||||
|
||||
### set_size
|
||||
|
||||
Changes the size of an element to a specific size.
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
<span style="font-weight: normal;">
|
||||
apply coupon for discount:
|
||||
</span>
|
||||
F988F082A3D18483B1C5
|
||||
62A4C02AB0A3DAB34388
|
||||
</div>
|
||||
<button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=F988F082A3D18483B1C5','_blank');">
|
||||
<button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=62A4C02AB0A3DAB34388','_blank');">
|
||||
click here to visit course page
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
<span style="font-weight: normal;">
|
||||
apply coupon for discount:
|
||||
</span>
|
||||
9AF99B123C49D51EB547
|
||||
62A4C02AB0A3DAB34388
|
||||
</div>
|
||||
<button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=9AF99B123C49D51EB547','_blank');">
|
||||
<button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=62A4C02AB0A3DAB34388','_blank');">
|
||||
click here to visit course page
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
<img src="https://www.dropbox.com/s/6wzf3ebmj97v4zs/PySimpleGUI-GitHub-Udemy-Course.png?raw=1" width=200 alt="PySimpleGUI Udemy Course">
|
||||
</td>
|
||||
<td>
|
||||
<h5>apply coupon for discount:<br>F988F082A3D18483B1C5</h6>
|
||||
<a href="https://www.udemy.com/course/pysimplegui/?couponCode=F988F082A3D18483B1C5">click here to visit course page</a>
|
||||
<h5>apply coupon for discount:<br>62A4C02AB0A3DAB34388</h6>
|
||||
<a href="https://www.udemy.com/course/pysimplegui/?couponCode=62A4C02AB0A3DAB34388">click here to visit course page</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue