

import wx
from wx.combo import OwnerDrawnComboBox


class ComboBox(OwnerDrawnComboBox):
    def __init__(self, parent, win_id, value=wx.EmptyString, pos=wx.DefaultPosition,
            size=wx.DefaultSize, choices=[], style=0, validator=wx.DefaultValidator,
            name=wx.ComboBoxNameStr):
        OwnerDrawnComboBox.__init__(self, parent, win_id, value, pos, size, choices,
                style, validator, name)
        
        self.Default = self.GetLabel()
        self.Priority = []
    
    
    ## Resets ComboBox to defaults
    def Reset(self):
        if not self.Count:
            self.SetValue(self.Default)
            return self.Value == self.Default
        
        return False



import wx
from wx.combo import OwnerDrawnComboBox


class ComboBox(OwnerDrawnComboBox):
    def __init__(self, parent, win_id=wx.ID_ANY, value=wx.EmptyString, pos=wx.DefaultPosition,
            size=wx.DefaultSize, choices=[], style=0, validator=wx.DefaultValidator,
            name=wx.ComboBoxNameStr):
        OwnerDrawnComboBox.__init__(self, parent, win_id, value, pos, size, choices,
                style, validator, name)
        
        self.Default = self.GetLabel()
        self.Priority = []
    
    
    ## Resets ComboBox to defaults
    def Reset(self):
        if not self.Count:
            self.SetValue(self.Default)
            return self.Value == self.Default
        
        return False

Set ComboBox class default ID to wx.ID_ANY
Set ComboBox class default ID to wx.ID_ANY
  
  
  import wx
  from wx.combo import OwnerDrawnComboBox
  
  
  class ComboBox(OwnerDrawnComboBox):
-     def __init__(self, parent, win_id, value=wx.EmptyString, pos=wx.DefaultPosition,
+     def __init__(self, parent, win_id=wx.ID_ANY, value=wx.EmptyString, pos=wx.DefaultPosition,
              size=wx.DefaultSize, choices=[], style=0, validator=wx.DefaultValidator,
              name=wx.ComboBoxNameStr):
          OwnerDrawnComboBox.__init__(self, parent, win_id, value, pos, size, choices,
                  style, validator, name)
          
          self.Default = self.GetLabel()
          self.Priority = []
      
      
      ## Resets ComboBox to defaults
      def Reset(self):
          if not self.Count:
              self.SetValue(self.Default)
              return self.Value == self.Default
          
          return False
  
Set ComboBox class default ID to wx.ID_ANY
## Code Before:


import wx
from wx.combo import OwnerDrawnComboBox


class ComboBox(OwnerDrawnComboBox):
    def __init__(self, parent, win_id, value=wx.EmptyString, pos=wx.DefaultPosition,
            size=wx.DefaultSize, choices=[], style=0, validator=wx.DefaultValidator,
            name=wx.ComboBoxNameStr):
        OwnerDrawnComboBox.__init__(self, parent, win_id, value, pos, size, choices,
                style, validator, name)
        
        self.Default = self.GetLabel()
        self.Priority = []
    
    
    ## Resets ComboBox to defaults
    def Reset(self):
        if not self.Count:
            self.SetValue(self.Default)
            return self.Value == self.Default
        
        return False

## Instruction:
Set ComboBox class default ID to wx.ID_ANY
## Code After:


import wx
from wx.combo import OwnerDrawnComboBox


class ComboBox(OwnerDrawnComboBox):
    def __init__(self, parent, win_id=wx.ID_ANY, value=wx.EmptyString, pos=wx.DefaultPosition,
            size=wx.DefaultSize, choices=[], style=0, validator=wx.DefaultValidator,
            name=wx.ComboBoxNameStr):
        OwnerDrawnComboBox.__init__(self, parent, win_id, value, pos, size, choices,
                style, validator, name)
        
        self.Default = self.GetLabel()
        self.Priority = []
    
    
    ## Resets ComboBox to defaults
    def Reset(self):
        if not self.Count:
            self.SetValue(self.Default)
            return self.Value == self.Default
        
        return False
