semvec/pypi-packages huggingface dataset:
testscpkg 0.1
scmainWindow is a pyqt5 custom widget that can be used as the main window
License: MIT
Keywords: pyqt5,mainWindow,frameless

# pyqt5-CSMainWindow

## Description
CSMainWindow is a pyqt5 custom widget that can be used as the main window. This widget provides a custom frame with a title bar that Includes a title icon, title bar text, minimize button, maximize button, and close buttons. You can move the window using the title bar and can resize the window by using the frame. It does not depend upon os. Also, you can customize anything.

## Author
SihinaCode Youtube channel.
[click here to visit](https://www.youtube.com/channel/UCOBz3xsHeNWmeq8yTDnc6Og)

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.

```bash
pip install pyqt5-CSMainWindow
```

## Usage
### main window
```python
from PyQt5 import QtWidgets
from scmainWindow import mainWindow
from body import Body #import your pyqt5 Body class here
import sys

class main(mainWindow.MainWindow):
    def __init__(self):
        super(main, self).__init__()
        self.resize(500, 500)            #Window size
        self.resizable = 0               #enable/disable the ability to resize the window. default: 1
        self.setTitleText("title text")  #title. default:untitled
        self.setIcon("path of image")    #title bar icon
        self.setTransparent(0.9)         #transparency of window (0 - 1). default: 1
        self.setFrameShadow(0)           #enable/disable frame shadow. default: 1

        body = Body()
        self.insertBody(body)

        #self.titleBar.hide()
        #self.minimizeButton.hide()
        #self.maximizeButton.hide()
        #self.closeButton.hide()



if __name__ == "__main__":
        app = QtWidgets.QApplication(sys.argv)
        Form = main()
        Form.show()
        sys.exit(app.exec_())
```
### body
```python
from PyQt5 import QtWidgets, QtCore, QtGui
from bodyUi import Ui_Form #your UI class

class Body(QtWidgets.QWidget, Ui_Form):
    def __init__(self):
        super(Body, self).__init__()
        self.setupUi(self)
```

## Support
Visit the SihinaCodes YouTube channel for support.
[click here](https://www.youtube.com/channel/UCOBz3xsHeNWmeq8yTDnc6Og)

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)