User Profile

Collapse

Profile Sidebar

Collapse
chaosAD
chaosAD
Last Activity: Jan 11 '09, 10:00 PM
Joined: Feb 27 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • try this line instead

    Code:
    pcm_audio = ctypes.py_object(r.data)
    hope it helps :)
    See more | Go to post

    Leave a comment:


  • chaosAD
    replied to need to write a simple web crawler
    a simple html parser, looks for thumbnail tags and prints the thumbnail information

    Code:
    import urllib2, sgmllib
    
    
    class ImageScraper(sgmllib.SGMLParser):
    
        def __init__(self):
    
            sgmllib.SGMLParser.__init__(self)
            
            self.href = ''
    
        def start_a(self, attrs):
            for tag, value in attrs:
                if tag == 'href':
    ...
    See more | Go to post

    Leave a comment:


  • chaosAD
    replied to Drag and Drop
    wxpython mdi window might be what you are looking for? I'm not sure about tk i don't use it very often

    Code:
    import wx
    
    class ParentWindow(wx.MDIParentFrame):
    
        def __init__(self, parent, title):
    
            wx.MDIParentFrame.__init__(self, parent, -1, title)
    
            # create child window
            self.child = ChildWindow(self, "Hello I am a child window")
    ...
    See more | Go to post

    Leave a comment:


  • I use pyinstaller to build my python scripts. I wrote a python IDE a few months ago which has an automated spec and exe builder built into it, very easy to use, I still haven't gotten around to finishing it yet. I'll have a root around my harddrive for it and post it here later.

    but yeah python is a scripting language, if you are looking to build small fast compact applications you want to distribute, I suggest you try a statically...
    See more | Go to post

    Leave a comment:


  • heh, i was at work when i typed the code up i didnt test it but yeah you're right self.SetSizerAn dFit(sizerv) is the correct way ;p
    See more | Go to post

    Leave a comment:


  • chaosAD
    replied to wxpython __init__
    i recommend you learn the basics of python and especially oop before you start learning wxPython, a good site that covers the basics http://www.sthurlow.co m/python/

    this site pretty much covers the lot on wxpython http://wiki.wxpython.o rg/...
    See more | Go to post

    Leave a comment:


  • chaosAD
    replied to Problem with wx.StaticBitmap
    You'll proberly want to use the gdi for animation http://wiki.wxpython.org/DoubleBufferedDrawing
    See more | Go to post

    Leave a comment:


  • I usually keep a basic template when im developing wxPython GUIs and then add to it accordingly. That way i cant go wrong and my code looks readable

    Code:
    import wx
    
    class MyFrame(wx.Frame):
        def __init__(self):
            wx.Frame.__init__(self, None, wx.ID_ANY, " My Frame ")
    
            panel = MyPanel(self)
            sizerv = wx.BoxSizer(wx.VERTICAL)
            sizerv.Add(panel,
    ...
    See more | Go to post

    Leave a comment:


  • chaosAD
    replied to What is your OS and Python Version
    I am using Windows Vista, just installed Python 2.5.2

    most of the time i use IDLE as my IDE but i have just recently started using Komodo, it has a very good debugger btw.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...