You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,22 +23,25 @@ pip install tkinterwidgets
23
23
24
24
#### Usage
25
25
```
26
-
tkinterwidgets.Label(parent,OPTIONS)
26
+
tkinterwidgets.Label(master, OPTIONS)
27
27
```
28
-
28
+
29
29
Options
30
30
* All the options of native `tkinter``Label` except `bg`/`background` since the background is transparent.
31
31
*`opacity` - Used to specify the opacity of the contents on a scale of `0` to `1` (where `0` implies transparent and `1` implies opaque). The default is set to `1`.
32
32
*`transcolor` - Used to specify the color to be used to create the transparency effect (you can imagine this as a green screen but of the specified color, make sure that the visible contents of the label do not have this color). The default is set to `SystemButtonFace` .
33
33
34
34
Methods
35
-
*`pack` - Same usage as that of the `pack` geometry manager in `tkinter`.
36
-
*`config`/`configure` - Set values of one or more options.
35
+
* The following have the same use as that of the corresponding methods in native `tkinter` widgets
36
+
*`pack`
37
+
*`pack_forget`
38
+
*`config`/`configure`
39
+
*`destroy`
37
40
38
41
#### Current Limitations / Issues
39
42
* Only `pack` geometry manager can be used.
40
43
* Can not be treated as a `window` in `Canvas.create_window()` or `Text.window_create()` or any similar usage.
41
-
*In some cases, the label remains outside the window when the size of the window is reduced.
44
+
*Label might move outside the window when resizing past it in some cases.
0 commit comments