Package: henxel
HenxelGUI-editor for Python development. Tested to work with Debian 12, Windows 10 and 11 and macOS 12.FeaturingAuto-indentFont ChooserColor ChooserLine numberingTabbed editingInspect objectShow git-branchRun current fileSearch - ReplaceIndent - UnindentComment - UncommentSyntax highlightingClick to open errorsParenthesis checkingPersistent configurationLackingAuto-completionHintingPrerequisites in LinuxPython modules required that are sometimes not installed with OS: tkinter. Check in Python-console:>>> import tkinterIf no error, it is installed. If it throws an error you have to install it from OS-repository. In debian it is: python3-tk~$ sudo apt install python3-tkAbout virtual environment, optional but highly recommendedConsider creating virtual environment for your python-projects and installing python packages like this editor to it. Editor will not save your configuration if it was not launched from virtual environment. In debian you have to first install this package: python3-venv:~$ sudo apt install python3-venvThere is a linux-script named 'mkvenv' in /util. Copy it to some place nice like bin-directory in your home-directory and make it executable if it is not already:~/bin$ chmod u+x mkvenvThen make folder for your new project and install venv there and activate it, and show currently installed python-packages in your new virtual environment, and lastly deactivate (quit) environment:~$ mkdir myproject~$ cd myproject~/myproject$ mkvenv env-------------------------------~/myproject$ source env/bin/activate(env)~/myproject$ pip list-----------------------------------(env)~/myproject$ deactivate~/myproject$To remove venv just remove the env-directory and you can start from clean desk making new one with mkvenv later. Optional about virtual environment ends here.Prerequisites in Windows and venv-creationPython installation should already include tkinter. There is
mkvenv-install script for Windows in /util. Here is short info about how to
create a working Python virtual environment in Windows. First open console, like
PowerShell (in which: ctrl-r to search command history, most useful) or CMD-Terminal and:mkdir myprojectcd myprojectmyproject> py win_install_mkvenv.pymyproject> mkvenv envmyproject> env\act.batIf that did not activate venv:myproject> env\Scripts\activateAfter venv is active upgrade pip and install Henxel:(env)myproject> pip install --upgrade pip(env)myproject> pip install henxelVenv is now ready:(env)myproject> pip list(env)myproject> deactivateLaunch Henxel:myproject> env\launch_ed.batPrerequisites in macOS and venv-creationPython installation (you may need to install newer version of python from python.org)
should already include tkinter. There currently is no mkvenv script for macOS,
but making venv is quite same as in Linux. It seems to be enough to make venv
and then install henxel to it without anything else.~$ mkdir myproject~$ cd myproject~/myproject$ python -m venv env-------------------------------~/myproject$ source env/bin/activate(env)~/myproject$ pip list-----------------------------------(env)~/myproject$ deactivate~/myproject$Installing(env)~/myproject$ pip install henxelor to install system-wide, not recommended. You need first to install pip from OS-repository:~/myproject$ pip install henxelRunning from Python-console:~/myproject$ source env/bin/activate(env)~/myproject$ python-------------------------------------->>> import henxel>>> e=henxel.Editor()Developing~/myproject$ mkvenv env~/myproject$ . env/bin/activate(env)~/myproject$ git clone https://github.com/SamuelKos/henxel(env)~/myproject$ cd henxel(env)~/myproject/henxel$ pip install -e .If you currently have no internet but have previously installed virtual environment which has pip and setuptools and you have downloaded henxel-repository:(env)~/myproject/henxel$ pip install --no-build-isolation -e .Files are in src/henxel/More on virtual environments:This is now bit more complex, because we are not anymore expecting that we have many older versions of the project left (as packages). But with this lenghty method we can compare to any commit, not just released packages. So this is for you who are packaging Python-project and might want things like side-by-side live-comparison of two different versions, most propably version you are currently developing and some earlier version. I Assume you are the owner of the project so you have the git-history, or else you have done git clone. I use henxel as the project example.First create development-venv for the project, if you haven't already and install current version to it in editable mode:~/myproject/henxel$ mkvenv env~/myproject/henxel$ . env/bin/activate(env)~/myproject/henxel$ pip install -e .Then select the git-commit for the reference version. I have interesting commits with message like: version 0.2.0 so to list all such commits:~/myproject/henxel$ git log --grep=versionFor example to make new branch from version 0.2.0, copy the first letters from the commit-id and:~/myproject/henxel$ git branch version020 e4f1f4ab3f~/myproject/henxel$ git switch version020Then create ref-env to some place that is not version-controlled like the parent-folder and install version020 of the project to it with pip, again in editable mode, just in case you want to try something out.~/myproject/henxel$ cd ..~/myproject$ mkvenv v020~/myproject$ . v020/bin/activate(v020)~/myproject$ cd henxel(v020)~/myproject/henxel$ pip list(v020)~/myproject/henxel$ pip install -e .(v020)~/myproject/henxel$ deactivateNow you are ready to launch both versions of your project and do side-by-side comparison if that is what you want:~/myproject/henxel$ . env/bin/activate(env)~/myproject/henxel$ pip listFrom other shell-window:~/myproject$ . v020/bin/activate(v020)~/myproject$ pip listMore resourcesChangelogLicenceThis project is licensed under the terms of the GNU General Public License v3.0.