Unable to set background image of Qframe using python following code works fine in centos but in window 7 not even its did not show any error


 def getImagePath(self,image):

    pluginPath = (os.path.dirname(__file__))
    themePath = str("icons")  + QDir.separator() + str(image)
    filePath =  pluginPath + QDir.separator() + themePath
    if QFile.exists(pluginPath + QDir.separator() + themePath):

         return filePath
        return ""

closed as off-topic by Matthias Kuhn, nickves, Mapperz May 13 '16 at 14:16

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions relating to general Information Technology, with no clear GIS component, are off-topic here, but can be researched/asked at Stack Overflow (software development), Super User (computing hardware and software) and Database Administrators (relational databases)" – Matthias Kuhn, nickves, Mapperz
If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.