I forgot to mention this in the last post, but I've decided to make a change to my "database" system. It has up to been now done in MS Excel, which is a spreadsheet. While it is allowed within the marking bounds of my project, I have been advised to change it in for a proper database software/ system such as SQL or Access.
Once I have a SQL viewer/ reader installed I will be re-working parts of my program to use a SQlite database rather than a spreadsheet.
Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts
Thursday, July 14, 2016
CSS Colour Picker - in Tkinter
So today I started working on the 'drop-down' menu system which will allow users to choose a 'primary' and 'secondary' colour for their websites colour scheme which the program will export into a CSS file.
I wanted to try and work in a little bit of the Tkinter module on this one so I don't have to re-work the entire program at a later date once it's complete and I want to add a neat U.I
This last image shows me testing to see if Tkinter is compatible with all the HTML Hex Colour codes I saved (shown in the last post) and it is, which is good news. :D
Monday, July 11, 2016
Working on Stylesheet Creation
So after coming back from a week's residential I can now get back to work on the project. This week I am hoping to complete the CSS file creation part of the software.
As part of this I am creating txt files which contain a html compatible colour, the hex value for that colour (which will be used to display the colour in the option menu) as well as a list of alternatives in the case that a browser doesn't support the colour.
E.g.
navy, darkblue, blue
Once I have completed all of the files I will upload them to either my Onedrive or Google Drive and link them.
As part of this I am creating txt files which contain a html compatible colour, the hex value for that colour (which will be used to display the colour in the option menu) as well as a list of alternatives in the case that a browser doesn't support the colour.
E.g.
navy, darkblue, blue
I have currently written up files for Reds, Blues and am currently working on a grey-scale list (I have to constantly remind myself to use the American-English spellings of everything :^ )
I am using this w3schools page to get all the correct names and hex values:
http://www.w3schools.com/colors/colors_names.aspOnce I have completed all of the files I will upload them to either my Onedrive or Google Drive and link them.
Labels:
a-level,
blue,
colors,
colours,
computer science,
css,
dictionary,
files,
grey,
html,
lists,
NEA,
programming,
project,
red,
text,
txt
Saturday, June 18, 2016
User Database
As I have not yet finished a significant enough part of the programming in python for the main program I will (for now) explain a little about the Users database, run using an ms. excel spreadsheet.
Python is able to manipulate cells in the spreadsheet file by using an external module called 'openpyxl'. Python Library Page
As I am having users and admins, I am using two different sheets in the same file. Both record a name, surname, username, last login and email. The main difference between the two is that the Users sheet also contains a file directory detailing where their files are stored. As the program progresses, they will be given different permissions.
Here are a few images to illustrate the structure.
The subroutine I have created to add a regular user (so-far) looks like this:
---
---
---
I will make downloads of all the files available once I have completed the project.
Python is able to manipulate cells in the spreadsheet file by using an external module called 'openpyxl'. Python Library Page
As I am having users and admins, I am using two different sheets in the same file. Both record a name, surname, username, last login and email. The main difference between the two is that the Users sheet also contains a file directory detailing where their files are stored. As the program progresses, they will be given different permissions.
Here are a few images to illustrate the structure.
The subroutine I have created to add a regular user (so-far) looks like this:
---
---
---
I will make downloads of all the files available once I have completed the project.
Introductions
This is a blog to record a python(3.4)-based programming project that I am completing for my A-level Computer Science programming (NEA) project.
The main idea is to have a 'simple-to-use' user-interface where users will enter basic information such as headings and paragraph text - as well as some keywords, e.g. colours for a website theme which the Python Program will turn into a simple website.
I will be posting updates as the project progresses, as well as snippets of code.
Labels:
3.4,
a-level,
computer science,
css,
html,
NEA,
programming,
project,
python
Subscribe to:
Posts (Atom)