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
Currently most widgets can't use style sheets properly so you have to use attributes to stylize them. I'm working on removing this inconvenience and make their usage as close as to base Qt widgets
@@ -22,8 +19,15 @@ Currently most widgets can't use style sheets properly so you have to use attrib
22
19
-[License](#License)
23
20
24
21
## Installing
25
-
The module (version 0.0.4) is not on PyPi yet, so you have to manually download `pyqt5Custom` folder. Version 0.0.5 will be on PyPi. \
26
-
You can also use PySide2 instead of PyQt5 with just litte changes.
22
+
Install using PIP (it might be `pip3` or `python3` depending on your platform)
23
+
```
24
+
pip install pyqt5Custom
25
+
```
26
+
or
27
+
```
28
+
python -m pip install pyqt5Custom
29
+
```
30
+
Also you can also use PySide2 instead of PyQt5 with just litte changes.
27
31
28
32
## Usage
29
33
Just import `pyqt5Custom` and you're ready to go. You can check out [Examples](https://github.com/kadir014/pyqt5-custom-widgets/blob/main/examples/), one little example for ToggleSwitch widget:
Copy file name to clipboardExpand all lines: documentation.md
+31-14Lines changed: 31 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,17 @@ Here is the list of currently implemented widgets
9
9
-[EmbedWindow](#DEmbedWindow)
10
10
-[CodeTextEdit](#CodeTextEdit)
11
11
-[TitleBar](#TitleBar)
12
-
-[Misc](#misc)
12
+
-[Spinner](#Spinner)
13
+
-[Toast](#Toast)
13
14
15
+
## Other stuff
16
+
Other stuff that the the library provides but are not mainly widgets. Some are tools, data classes, etc...
17
+
-[RequestHandler](#RequestHandler)
18
+
-[FileDetails](#FileDetails)
19
+
-[Animation](#Animation)
20
+
-[AnimationHandler](#AnimationHandler)
21
+
-[ColorPreview](#ColorPreview)
22
+
-[SyntaxHighlighter](#SyntaxHighlighter)
14
23
15
24
16
25
## ToggleSwitch
@@ -121,13 +130,21 @@ Here is the list of currently implemented widgets
121
130
-`title()` (str) : Get title
122
131
123
132
124
-
# Misc
125
-
Other stuff _(which you mostly don't need to know they existed)_ included within the module other than custom widgets
126
-
-[FileDetails](#FileDetails)
127
-
-[ColorPreview](#ColorPreview)
128
-
-[SyntaxHighlighter](#SyntaxHighlighter)
129
-
-[Animation](#Animation)
130
-
-[AnimationHandler](#AnimationHandler)
133
+
# Other stuff
134
+
Other stuff that the the library provides but are not mainly widgets. Some are tools, data classes, etc...
135
+
136
+
## RequestHandler
137
+
`RequestHandler` is a thread (QThread) that can be used to handle HTTP requests while avoiding blocking Qt's event loop. You can see [Examples](https://github.com/kadir014/pyqt5-custom-widgets/blob/main/examples/) to see usage of this class.
138
+
139
+
#### Methods
140
+
-`newRequest(method, url, headers, data)`
141
+
-`method` (str) : Request method
142
+
-`url` (str) : Address where request will be sent at
143
+
-`headers` (dict) : Request headers
144
+
-`data` (dict) : Request data
145
+
146
+
#### Signals
147
+
-`requestResponded` : Emitted when a requeest in the current pool gets responded. Response is a [requests.Response](https://docs.python-requests.org/en/latest/api/#requests.Response) object
131
148
132
149
## FileDetails
133
150
`FileDetails` object is a data class which is meant to be used by `DragDropFile` for `fileDropped` signal
@@ -139,14 +156,14 @@ Other stuff _(which you mostly don't need to know they existed)_ included within
139
156
-`pureName` (str) : File's name without the extension
140
157
-`extension` (str) : File's extension
141
158
142
-
## ColorPreview
143
-
`ColorPreview` is a widget to display some color. It can bee seen used next to ColorPicker example. But this widget is most likely going to be deprecated
144
-
145
-
## SyntaxHighlighter
146
-
`SyntaxHighlighter` inherits `QSyntaxHighlighter`, it's only purpose is to serve `CodeTextEdit` widget. `pyqt5Custom` module currently (version 0.0.4) supports only Python and C++ syntax highlighting.
147
-
148
159
## Animation
149
160
`Animation` is just a static class holding easing animation functions. This class is most likely going to be deprecated when I rework animations.
150
161
151
162
## AnimationHandler
152
163
`AnimationHandler` animates widget's properties using `Animation` class's functions. This class is most likely going to be deprecated when I rework animations.
164
+
165
+
## ColorPreview
166
+
`ColorPreview` is a widget to display some color. It can bee seen used next to ColorPicker example. But this widget is most likely going to be deprecated
167
+
168
+
## SyntaxHighlighter
169
+
`SyntaxHighlighter` inherits `QSyntaxHighlighter`, it's only purpose is to serve `CodeTextEdit` widget. `pyqt5Custom` module currently supports only Python and C++ syntax highlighting.
0 commit comments