Metadata-Version: 2.1
Name: PySimpleGUIDesigner
Version: 0.1.4.4
Summary: PySimpleGUI designer, that uses transpiler to produce code from Qt Designer xml file.
Home-page: https://github.com/nngogol/PySimpleGUI_designer
Author: Nikolay Gogol
Author-email: nngogol09@gmail.com
License: GNU-GPL
Description: # PySimpleGUI Designer
        
        ## Install:
        ```bash
        # Requirements: pyside2
        # $ pip install PySide2
        pip install PySimpleGUIDesigner
        ```
        
        ## Usage
        Use GUI(by default):
        ```bash
        PySimpleGUIDesigner
        ```
        
        Use CLI:
        ```bash
        PySimpleGUIDesigner -xml "~/folder1/test.ui" -ob "somegroupBox"
        ```
        
        Want to know parameters? Get help by:
        ```bash
        PySimpleGUIDesigner --help
        # 
        # Output:
        # 
        Usage: main.py [OPTIONS]
        
        Options:
          -v, --verbose                   Verbose mode
          -xml, --xmlfile PATH            absolute or relative path to ui_file
          -ob, --objname TEXT             Object name of target container
          -nobadwidgets                   Forget about not-implemented(bad) widgets.
                                          Default - True
          -ic, --indent_char TEXT         Indent character. Default is " "
          -ia, --indent_char_amount INTEGER
                                          Indent amount
          -o, --outputfile PATH           Output file for PySimpleGUI code
          -pp_mouse                       Option - generate buttons events
          -pp_keys                        Option - generate all events
          --help                          Show this message and exit.
        ```
        
        
        
        ## Using source code (from this repo)
        
        Let's imagine you say "I don't want `pip install`, how to use this repo's source code?"
        
        Download this repo, ***cd*** into it.
        
        Run in the shell:
        ```bash
        python3 main.py --help
        # equivalent to:
        # PySimpleGUIDesigner --help
        ```
        
        If you see this error:
        
        `ModuleNotFoundError: No module named '__main__.transpiler2'; '__main__' is not a package`
        
        THEN just **change** in `main.py` line `from .transpiler2 import *` to `from transpiler2 import *`
        
        ----
        ----
        
        
        # Examples:
        
        ##### Using as normal (easy):
        ```bash
        python3 main.py --xmlfile="~/folder1/test.ui" --objname="somegroupBox"
        # OR
        python3 main.py -xml "~/folder1/test.ui" -ob "somegroupBox"
        ```
        
        ##### 
        I like to use `watch` command. Next command will *compile* every **3 second** and **output to the screen**:
        ```bash
        watch -n 3 PySimpleGUIDesigner -xml "~/folder1/test.ui" -ob somegroupBox
        ```
        
        ##### Redirect
        Use (bash) redirect (OR `-o` option):
        ```bash
        PySimpleGUIDesigner -xml untitled.ui -ob v1 > untitled.py
        PySimpleGUIDesigner -xml untitled.ui -ob v1 -o untitled.py
        ```
        
        ##### *(You can use auto-update in GUI)*
        
        
        
        
        ## More Examples:
        
        ```bash
        #=================== Basics:
        ### relative path
        python3 main.py -xmlfile "untitled.ui" -objname="text1"
        python3 main.py -xmlfile "examples_of_ui/untitled.ui" -objname="vv1"
        ### absolute path
        python3 main.py -xmlfile "/tmp/examples_of_ui/untitled.ui" -objname="text1"
        
        #=================== Indent:
        # ia = indent amount, ic = indent char
        python3 main.py -xmlfile "untitled.ui" -objname="text1" -ic " "
        python3 main.py -xmlfile "untitled.ui" -objname="text1" -ic " " -ia 1 # the same effect, as command above
        
        python3 main.py -xmlfile "untitled.ui" -objname="text1" -ic " " -ia 2
        
        
        ### add boilerplate to output file
        python3 main.py -xmlfile "untitled.ui" -objname="text1" -pp_mouse -ic " " -ia 2
        python3 main.py -xmlfile "untitled.ui" -objname="text1" -pp_keys
        python3 main.py -xmlfile "untitled.ui" -objname="text1" -ic " " -ia 2 -pp_keys
        
        ```
        
        ---
        
        ## Todo
        
        Possible:
        - improve `psg_ui_maker.py` - somewhere in `__init__` method, maybe;
        - add some `picking templates` for user
        - add some `boilerplate`'s in output generated code
        - maybe some unit tests, idk. `pytest`?
        
        
        ## FAQ
        
        How do I use PySimpleGUIDesigner WITH Qt Designer?
        Watch this video (by me):
        
        https://www.youtube.com/watch?v=dN7gXwnNoBA
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Multimedia :: Graphics
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
