parameters: (self, div, width, monthyear, month_idx)
docstring: draw the days for each month
docstring_summary: draw the days for each month
docstring_tokens: draw the days for each month
function: def _draw_days(self, div, width, monthyear, month_idx):
          '''draw the days for each month'''
          div.add(HtmlElement.br())
          month, year = monthyear[0], monthyear[1]
          month_digit = CalendarBarWdg.MONTHS.index(month) + 1
          
          num_days = Calendar.get_num_days(year, month_digit)
          day_range =  xrange(1, num_days + 1)
          week = self.week_hid
          if week:
              # handle the cross-year scenario
              if int(week) == 1 and month_digit == 12:
                  year += 1
              num_days_list = Calendar.get_monthday_time(year, week)
              month_days = self._get_month_days(year, week)
              day_range = month_days
          for day in day_range:
              if isinstance(day, tuple):
                  month_digit, day = day[0], day[1]
              weekday = Calendar.get_weekday(year, month_digit, day)
              # show every day 
              # add divider for days
              #divider = self._get_divider(day, float(width) / num_days)
              #div.add(divider)
  
              # show divider every week
              if weekday == 6 and not week:
                  left_pos = float(width) / len(day_range) * day + width * month_idx
                  divider = self._get_divider( left_pos )
                  div.add(divider)
              
              day_div = FloatDivWdg(day, css='smaller')
              # grey out weekends
              if weekday > 4:
                  day_div.add_style('background', '#bbb')
  
              # try to get up to 2 decimal point for the width
              day_div.add_style('width', '%.2fpx' %(width / len(day_range)))
  
              font_size = int(width/num_days*0.75)
              if font_size > 10:
                  font_size = 10
              day_div.add_style('font-size: %spx' % font_size )
  
              div.add(day_div)
function_tokens: def _draw_days ( self , div , width , monthyear , month_idx ) : div . add ( HtmlElement . br ( ) ) month , year = monthyear [ 0 ] , monthyear [ 1 ] month_digit = CalendarBarWdg . MONTHS . index ( month ) + 1 num_days = Calendar . get_num_days ( year , month_digit ) day_range = xrange ( 1 , num_days + 1 ) week = self . week_hid if week : # handle the cross-year scenario if int ( week ) == 1 and month_digit == 12 : year += 1 num_days_list = Calendar . get_monthday_time ( year , week ) month_days = self . _get_month_days ( year , week ) day_range = month_days for day in day_range : if isinstance ( day , tuple ) : month_digit , day = day [ 0 ] , day [ 1 ] weekday = Calendar . get_weekday ( year , month_digit , day ) # show every day  # add divider for days #divider = self._get_divider(day, float(width) / num_days) #div.add(divider) # show divider every week if weekday == 6 and not week : left_pos = float ( width ) / len ( day_range ) * day + width * month_idx divider = self . _get_divider ( left_pos ) div . add ( divider ) day_div = FloatDivWdg ( day , css = 'smaller' ) # grey out weekends if weekday > 4 : day_div . add_style ( 'background' , '#bbb' ) # try to get up to 2 decimal point for the width day_div . add_style ( 'width' , '%.2fpx' % ( width / len ( day_range ) ) ) font_size = int ( width / num_days * 0.75 ) if font_size > 10 : font_size = 10 day_div . add_style ( 'font-size: %spx' % font_size ) div . add ( day_div )