analitics

Pages

Friday, January 2, 2015

Python and last version of Notepad++ 6.7.3

The last version of Notepad++ has released at 2015-01-01.
It comes with many features and fix also some bugs:
  • Syntax Highlighting and Syntax Folding;
  • User Defined Syntax Highlighting and Folding;
  • PCRE (Perl Compatible Regular Expression) Search/Replace;
  • GUI entirely customizable: minimalist, tab with close button, multi-line tab, vertical tab and vertical document list;
  • Document Map;
  • Auto-completion: Word completion, Function completion and Function parameters hint;
  • Multi-Document (Tab interface);
  • Multi-View;
  • WYSIWYG (Printing);
  • Zoom in and zoom out: Ctr key + Mouse Wheel ;
  • Multi-Language environment supported;
  • Bookmark;
  • Macro recording and playback;
  • Launch with different arguments;
I try it with python 3.4 and working very well.
First I download it from here.
I install it and I set it to working.

I wrote a simple python 3.4 script and then I press F5 key - Run from Notepad++.
import os 
import sys 
print ("this is notepad test - python run")

I put this in this window to run it python 3.4 : C:\Python34\Lib\idlelib\idle.bat "$(FULL_CURRENT_PATH)"

Also I press save button and select Ctr+Alt+P to run the scripts with hotkeys. This can be see it under Run menu.
When I press it then a python window with your script will show us and just you need is to press F5 key to run it.

Monday, December 29, 2014

WinPython - 32 and 64bit portable distribution with Qt.

The new WinPython (version 3.3.5.4) released at 2014-12-22 come with this issue:
WinPython is a free open-source portable distribution of the Python programming language for Windows XP/7/8, designed for scientists, supporting both 32bit and 64bit versions of Python 2 and Python 3.
I use 64bit portable distribution with Python 3.3.5 (v3.3.5:62cf4e77f785, Mar 9 2014, 10:35:05) [MSC v.1600 64 bit (AM
D64)] on win32 and working very well.
From this link you can download it.
WinPython is a free scientific Python distribution for Windows that is portable.It is completely isolated from the rest of the system. Also, WinPython can be installed in a folder (will be put into your download folder)and can be moved anywhere.
You can move on an USB stick and this will make entirely functional.
WinPython is bundled with a lot of existing Python packages.
Also, it includes graphical and command-line utilities to install/uninstall any Python package easily.

This come with spyder 2.3.2 version editor to edit your scripts.

You can use also Qt with Qt designer and you also have a demo application, see:

Sunday, December 21, 2014

pygame - using sound, mixer, volume, channels, fade-in and out effect .

PyGame module come with sound feature and this allow users to test some effects.
The next tutorial show you how to deal with pygame sound effect.
After, you can test all effects with python version 3.4.1 .
I used keys to change effects. The song is a ogg file.
I used this sample from a recording of of the album Through the Devil Softly by the artist Hope Sandoval and The Warm Inventions from here.