User Profile
Collapse
-
Thank you man, it worked but python complains that there is no buffer or string to hold the selected filles selected in order to processes them -
Multiple file selection in Qfiledailoug
Hello guys
i was wondering how can i be able to have multiple file selection whenever i browse my directory and choose files using Qfiledailoug
this is the code to lunch the file dailoug
files = QtGui.QFileDial og.getOpenFileN ame(self, 'Open file','/home/', ("Images (*.png *.tiff *.jpg)"))
Thank you -
pysqlite smart search
Hey guys;
I am trying to develop a tiny program using python to search inside sqlite database with file extension is .db in which the program will ask users to enter their search query and base on that it will retrieve the result But
I need the program to have some smartness in search mechanism in which the program will guess that the user is looking for these key words in the database.
so far i came up with... -
retrieveing data in pysqlite by user input
hello everyone
How can i be able to prompt users to query their search about photos Date in which date formate is "2008:12:10 ". by the way the following codes are hardcoded.
Code:import os import sqlite3 from pysqlite2 import dbapi2 as sqlite3 #import Database.py #Retrieving Data from DB connection = sqlite3.connect('Photos.db') memoryConnection = sqlite3.connect(':memory:')
-
-
hey man, thanks for replay
i did the following
Code:#arg.py import sys import shutil shutil.copytree(sys.argv[0], sys.argv[1] )
waseem@Linux:~/Project2$ python copying_photos. py '/home/waseem/My Pictures/yemen 2008/2008/1' '/home/waseem/h'
Traceback (most recent call last):
...Leave a comment:
-
shutil module (directory input from terminal)
hello folks
i am trying to tweak the current codes so that later when i call it from the terminal i can provide sourcefile and the destination file rather being fixed in the code. because now i have to specify the sourcefile and the destinationfile in codes and not left to be specified from the terminal. i want to be able to do this.
python shutil_copy.py sourcefile, destinationfile
Code:import shutil
-
thumbnails in Qfilediloug using pyqt
hey folks;
i am working on my program using python and PYQT that is suppose to load digital photos into the main interface of my program and perform few action on them. i have here the codes that will prompt me to brows to the system directory and show the system files and any other files. any way the codes here deal only with text files and loads only one file at the time. my question how can i alter the code to deal with digital... -
-
Pysqlite text data importing problem
hey folks
i am facing this problem in my following codes where i am trying to create a database using pysqlite and load data from text file where data is arranged in this form "Birthday2| 12/5/2008|HTC|this is my birthday"
but i could connect to the database, create it into my current working directory but i can't load the data from my text file in same working directory, i don't know the exact syntax for doing that.
... -
unfourtently, still not the fulfillment i might be extracting many photos at the time and i also might be extracting only and only one photo at the time so,i need the function that will cop with that which will only print the name of the photo that i specify after calling the module python myexif -q '/home/waseem/......./filename.jg without any concern of hom many the photos are(one, two, three, ....)in the terminal, besides if i changed to another...Leave a comment:
-
hey man,
your code above printed the files in my working directory which i don't need.
my module works like this
waseem@Linux:~/Study Related/project1/python modules/EXIFpy_1.0.7$
this is my directory
waseem@Linux:~/Study Related/project1/python modules/EXIFpy_1.0.7$py thon myexif.py -q '/home/waseem/My Pictures/Malaysia 28sep 2008/100MEDIA/IMAG0044.jpg' what i need is how to get the picture name...Leave a comment:
-
thanks bvdet for you replay
your example gave me an idea but there you specified the path of the file and the file name but how can i get that without any user input which means the function will know that i am now in this directory and this is file name so, it will extract the file name from the directory and print it out because if i change my module to other directory i have to change in the code you gave me. i hope you got the...Leave a comment:
-
getting the last index of an array
Hi folks
i am totally novice to python, that's why i have to learn it for my final year project.
Any way i have been using a python module for extracting exif data from pictures taken by digital camera. one of the data is extracting the file name of the picture but the file name is stored on an array so, once i call the extraction the whole file name directory will be printed on the terminal which is /home/waseem/my pictures/1.jpg....
No activity results to display
Show More
Leave a comment: