Monday, 18 January 2010

I have put this on hold for a short time while i get to grips with C++ but if anyone would like to use what i have already created please get in touch.

the plan is to converte the whole project from Python to C++.

Saturday, 14 November 2009

Working on the random image change idea I have managed to display a diffrent image each time the app is started. this is the code i used:

import os
import random
import shutil
import glob

glob.glob('*.png')
List = []

def imageupdate():
for root, dirs, files in os.walk('Downloads/'):
for name in files:
filename = os.path.join(root, name)
List.extend([filename])
rand = random.choice(List)
shutil.copy2(rand, 'temp.png')

The bigest problem i can see with this is that as the downloads folder fills up the app will take longer to start.
Im thinking that i should put a size limit on the list

Wednesday, 11 November 2009

just a litle update:
nothing new to report on SporeGrab but i felt that i should tell people about an IT comunity that i have found that offers tutorials and online help.
so check out DaniWeb.

Tuesday, 10 November 2009

spore grab 0.1.4


using a qlabel wiget i managed to get an image added to sporegrab it took me a littel while to figer out how to set it up.



self.label = QtGui.QLabel(self)

self.label.setPixmap(QtGui.QPixmap('temp.png'))

v_box.addWidget(self.label)



now if i can figer out how to change the image randomly i will be hapy

SporeGraber

Playing on Spore i realised that my own sporepedia was a bit low and i wanted a way to download from the sporepedia without haveing to start up my game. I wanted a simple way to just click on a button and populate my sporepedia so i came up with SporeGrab.

SporeGrab is a set of simple PyQt and Python scripts that i have been working on.

After skiming through the internet i realised that i wasnt the only one that would find this tool useful so i satrted to add a simple GUI (bear in mind i was just useing python at this point) and in version 0.1.1 it worked but was very simple. so i went about learning some PyQt as the gui functions in this are much more powerful. And SporeGrab 0.1.2 was born


I plan to update this blog with updates to my littel project as i include them.