Pages

Monday 22 May 2017

Python 2017-05-22

After a few struggles, I have put a GUI on my Python enigma machine using the Tkinter package.  You can now key the message you wish to encrypt or decrypt.  My next task is to create a web GUI using Django.

Thursday 18 May 2017

Python 2017-05-18 Tkinter

I am using this webpage to learn Tkinter for python. For anyone interested this is a very good introduction to Tkinter for python but be careful the tutorial uses python 2.

Python 2017-05-18 Write a GUI

My python enigma machine has been re-written in object-oriented code and successfully tested.  My next phase of development is to write a graphical user interface(GUI) for it.  I have chosen the built in package Tkinter to do it so I would not have to bother with downloading other packages.  This will take some time as I need to learn how to use Tkinter first.

Wednesday 17 May 2017

Python 2017-05-17

I have finished coding and testing my python Enigma machine and the results are correct.  Now my next task is to write the same thing but in an object-oriented manner.

Tuesday 16 May 2017

Python 2017-05-16

I have started my first major programming project in python and it is a python version of the WW2 Wehrmacht Enigma machine.  For the spec I am using the paper version as shown in the video below.

Sunday 14 May 2017

General election 2017

After Tony Blair won his landslide victory in 1997, I wondered if the Tories will ever get elected again.  Twenty years later I am asking the same question to myself but this time it is whether Labour will get back in.  I think we are seeing the death of the Labour party in front of our very eyes, which is sad because weak oppositions lead to bad governments.

Python 2017-05-14

I have been learning and practicing my python for a few weeks now and I find it it quite an enjoyable activity.  It has taken up the time that I would usually spend on Empire Total War. 

As someone who knows perl very well, I have picked it up very quickly, especially the objected oriented parts of the python.  I have even got a grasp of the multithreaded capabilities of the language, which is easier to use than perl's offering.

My only gripe with python and I think alot of users would concur is the use of tabbing and spacing.  Python does not use curly braces '{}' to block subroutines, ifs and loops.  Instead it uses a set number of spaces.  Failure to do this properly results in interpretter errors.  This can be annoying when copying and paste code examples.