User Profile

Collapse

Profile Sidebar

Collapse
shuf
shuf
Last Activity: Apr 5 '07, 01:46 PM
Joined: Mar 22 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • shuf
    replied to wxpython listctrl
    Thanks for your help....
    See more | Go to post

    Leave a comment:


  • shuf
    replied to wxpython listctrl
    I wanted to do the above on the EVT_LIST_ITEM_S ELECTED event, so I assume that it will not be different. I bound the event to the following method:
    Code:
    def OnSelected(self, event):
        item = event.GetItem()
        self.listctrl.SetItemBackgroundColour(item, wx.RED)
    But, I get an error that a number is expected for argument number 2 (item). So if I change the code to:
    Code:
    def OnSelected(self, event):
    ...
    See more | Go to post
    Last edited by bartonc; Nov 5 '07, 03:45 PM.

    Leave a comment:


  • shuf
    started a topic wxpython listctrl

    wxpython listctrl

    Hello,

    I was wondering if anyone knows how to change the color of a selected item in a listctrl (for example, on my system a selected item is highlighted in blue). I could not find any information on this, other than it is a system defined parameter. Any help is greatly appreciated.

    Thanks in advance,
    Stephen
    See more | Go to post

  • shuf
    started a topic wxpython window

    wxpython window

    Hello,

    I am running python 2.4.4 with wxpython 2.6 on Fedora 6. I am just playing around with the splitterwindow, and I noticed some strange behavior when resizing the window using the cursor (using the example here). When I try to resize the window horizontally the sash will remain "ghosted" until I move the splitter up or down. I have been able to reduce the ghosting effect by changing the gravity and the size, but I...
    See more | Go to post

  • shuf
    replied to How to know a socket msg is encoded UTF-8
    You could also try to use a packet sniffer such as Wire Shark or tcpdump (both use the pcap library). This utilities are great for debugging network traffic.
    See more | Go to post

    Leave a comment:


  • shuf
    replied to wxpython listbox help
    After working in C and C++ for a couple of years thinking in C++ is a nice break :). This is my first real project in Python, and I really enjoy it and all the help I have recieved!...
    See more | Go to post

    Leave a comment:


  • shuf
    replied to wxpython listbox help
    I found the method specified here. Is this the right place to be looking?...
    See more | Go to post

    Leave a comment:


  • shuf
    started a topic wxpython listbox help

    wxpython listbox help

    Hello,

    I am running python 2.4.4 with wxpython 2.6 on Fedora 6. I am trying to set the font color of individual elements in a listbox, but I am not able to with SetItemForegrou ndColour() (this method does not appear to do anything):

    Code:
    #!/usr/bin/env python
    # -*- coding: UTF-8 -*-
    # generated by wxGlade 0.4.1 on Thu Mar 22 12:15:29 2007
    
    import wx
    
    class MyFrame(wx.Frame):
    ...
    See more | Go to post
No activity results to display
Show More
Working...