id3 tag editor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • himynameismario
    New Member
    • Aug 2007
    • 7

    id3 tag editor

    Hey guys,
    Im making an mp3 id3 tag editor,
    but im wondering if anyone knows how i can play a file,within the same window?
    just simple play and pause options..
    thanks
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by himynameismario
    Hey guys,
    Im making an mp3 id3 tag editor,
    but im wondering if anyone knows how i can play a file,within the same window?
    just simple play and pause options..
    thanks
    I'd be very interested to know what your toolkit is (what you mean by "window").
    What you are seeking to do seems not to difficult on windows using the win32com package if you are talking about Microsoft's WMP on Windows.

    Comment

    • himynameismario
      New Member
      • Aug 2007
      • 7

      #3
      Originally posted by bartonc
      I'd be very interested to know what your toolkit is (what you mean by "window").
      What you are seeking to do seems not to difficult on windows using the win32com package if you are talking about Microsoft's WMP on Windows.
      well ive created a window frame where everything is in,
      including fields,listbox with tracklist,artwo rk..etc

      i wanna know how to embed a simple,invisibl e player,which i can just link to a 'play' and 'stop' button.yeah im assuming id somehow use WMP
      thanks

      Comment

      • bartonc
        Recognized Expert Expert
        • Sep 2006
        • 6478

        #4
        Originally posted by himynameismario
        well ive created a window frame where everything is in,
        including fields,listbox with tracklist,artwo rk..etc

        i wanna know how to embed a simple,invisibl e player,which i can just link to a 'play' and 'stop' button.yeah im assuming id somehow use WMP
        thanks
        After you have installed the PyWin32 Extensions, you simply:
        [CODE=python]
        >>> import win32com.client
        >>> wmp = win32com.client .Dispatch("Medi aPlayer.MediaPl ayer.1")
        >>> wmp.FileName = "C:/Path/To/Some/Media/File.wav"
        >>> wmp.Play()[/CODE]

        There are many hits on google here.

        Comment

        • himynameismario
          New Member
          • Aug 2007
          • 7

          #5
          ok thanks a lot for that
          im putting it aside for the moment,

          right now im having problems importing the id3 tag of any mp3 into the corresponding text fields

          im using the 'getselection' method;
          self.loadID3Dat a(self.panel.tr ackList.GetSele ction())

          im using wxpthon,and when i debug the function, it says the value is '0' for the file's data

          any help would be appreciated,tha nks

          Comment

          • bartonc
            Recognized Expert Expert
            • Sep 2006
            • 6478

            #6
            Originally posted by himynameismario
            ok thanks a lot for that
            im putting it aside for the moment,

            right now im having problems importing the id3 tag of any mp3 into the corresponding text fields

            im using the 'getselection' method;
            self.loadID3Dat a(self.panel.tr ackList.GetSele ction())

            im using wxpthon,and when i debug the function, it says the value is '0' for the file's data

            any help would be appreciated,tha nks
            There's not much for me to go on, there. But I'm guessing that you want:
            Code:
            trackList.GetStringSelection ()

            Comment

            • himynameismario
              New Member
              • Aug 2007
              • 7

              #7
              Originally posted by bartonc
              There's not much for me to go on, there. But I'm guessing that you want:
              Code:
              trackList.GetStringSelection ()
              thanks,that now gives me a value of '1',
              but im trying to get the files directory address to import the file's id3 info to my listbox
              thanks again

              Comment

              • himynameismario
                New Member
                • Aug 2007
                • 7

                #8
                wait no,
                that worked!
                thanks a lot

                now im just working on importing the id3 tag :]

                Comment

                Working...