User Profile

Collapse

Profile Sidebar

Collapse
klia
klia
Last Activity: Mar 16 '09, 01:43 PM
Joined: Oct 6 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • klia
    replied to Multiple file selection in Qfiledailoug
    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
    See more | Go to post

    Leave a comment:


  • klia
    started a topic Multiple file selection in Qfiledailoug

    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
    See more | Go to post

  • klia
    started a topic pysqlite smart search

    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...
    See more | Go to post
    Last edited by bvdet; Feb 23 '09, 05:28 PM. Reason: Added code tags

  • klia
    started a topic retrieveing data in pysqlite by user input

    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:')
    ...
    See more | Go to post

  • klia
    replied to shutil module (directory input from terminal)
    Thank you very much.

    it worked perfectly
    See more | Go to post

    Leave a comment:


  • klia
    replied to shutil module (directory input from terminal)
    hey man, thanks for replay

    i did the following

    Code:
    #arg.py
    import sys
    import shutil
    shutil.copytree(sys.argv[0], sys.argv[1] )
    and i got the following error, for the record i am trying to copy files from one directory to another one

    waseem@Linux:~/Project2$ python copying_photos. py '/home/waseem/My Pictures/yemen 2008/2008/1' '/home/waseem/h'
    Traceback (most recent call last):
    ...
    See more | Go to post

    Leave a comment:


  • klia
    started a topic shutil module (directory input from terminal)

    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
    ...
    See more | Go to post
    Last edited by bvdet; Jan 27 '09, 05:01 PM. Reason: Add code tags

  • klia
    started a topic thumbnails in Qfilediloug using pyqt

    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...
    See more | Go to post

  • klia
    replied to What is your OS and Python Version
    Ubuntu Linux, python 2.5 and SciTE editor.
    See more | Go to post

    Leave a comment:


  • klia
    started a topic Pysqlite text data importing problem

    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.
    ...
    See more | Go to post

  • klia
    replied to getting the last index of an array
    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...
    See more | Go to post

    Leave a comment:


  • klia
    replied to getting the last index of an array
    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...
    See more | Go to post

    Leave a comment:


  • klia
    replied to getting the last index of an array
    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...
    See more | Go to post

    Leave a comment:


  • klia
    started a topic getting the last index of an array

    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....
    See more | Go to post
No activity results to display
Show More
Working...