CrazyEngineers
  • Media player in python

    Updated: Oct 27, 2024
    Views: 1.1K
    I have installed all things properly but I am getting error in line numer 7 as:
    dirName = os.path.dirname(os.path.abspath(__file__))
    NameError: name '__file__' is not defined
    . I want to test the code given in this blog; <a href="https://www.blog.pythonlibrary.org/2010/07/24/wxpython-creating-a-simple-media-player/" target="_blank" rel="nofollow noopener noreferrer">wxPython: Creating a Simple Media Player - Mouse Vs Python</a>
    so will someone help me...I am beginner in python programming so I want to learn it.I have successfully run other simple programs in my windows 7 PC.
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Home Channels Search Login Register