| foundation.org> |
dc.SetTextForeground(wx.BLACK)
dc.SetFont(wx.SWISS_FONT)
time = self.item.startTime
- dc.DrawText(time.Format('%I:%M %p'), (10, 0))
- dc.DrawText(self.item.headline, (10, 14))
+ dc.DrawText(time.Format('%I:%M %p ') + self.item.headline, (10, 0))
+ #dc.DrawText(self.item.headline, (10, 14))
def DragHitTest(self, x, y):
return False
@@ -74,14 +77,13 @@
del Globals.association[self.counterpartUUID]
def OnSize(self, event):
- if not Globals.wxApplication.insideSynchronizeFramework:
- counterpart = Globals.repository.find(self.counterpartUUID)
- newSize = self.GetSize()
- counterpart.size.width = newSize.width
- counterpart.size.height = newSize.height
- self.SetVirtualSize(newSize)
- for drawableObject in self.zOrderedDrawableObjects:
- drawableObject.PlaceItemOnCalendar()
+ counterpart = Globals.repository.find(self.counterpartUUID)
+ newSize = self.GetSize()
+ counterpart.size.width = newSize.width
+ counterpart.size.height = newSize.height
+ self.SetVirtualSize(newSize)
+ for drawableObject in self.zOrderedDrawableObjects:
+ drawableObject.PlaceItemOnCalendar()
event.Skip()
def DrawBackground(self, dc):
@@ -128,7 +130,7 @@
super (WeekBlock, self).__init__(*arguments, **keywords)
self.rangeIncrement = DateTime.RelativeDateTime(days=7)
- self.updateRange(DateTime.today())
+ self.updateRange(DateTime.today() + self.rangeIncrement)
def renderOneBlock(self, parent, parentWindow):
canvas = wxWeekBlock(parentWindow,
@@ -194,12 +196,11 @@
del Globals.association[self.counterpartUUID]
def OnSize(self, event):
- if not Globals.wxApplication.insideSynchronizeFramework:
- counterpart = Globals.repository.find(self.counterpartUUID)
- newSize = self.GetSize()
- counterpart.size.width = newSize.width
- counterpart.size.height = newSize.height
- self.SetVirtualSize(newSize)
+ counterpart = Globals.repository.find(self.counterpartUUID)
+ newSize = self.GetSize()
+ counterpart.size.width = newSize.width
+ counterpart.size.height = newSize.height
+ self.SetVirtualSize(newSize)
event.Skip()
def DrawBackground(self, dc):
</pre></td></tr>
<tr class="mime">
<td class="left">Mime</td>
<td class="right">
<ul>
<li><a rel="nofollow" href="/archives/commits/200405.mbox/raw/<200405061735.i46HZoWQ015835@hula.osafoundation.org>/">Unnamed text/plain</a> (inline, None, 4511 bytes)</li>
</ul>
</td>
</tr>
<tr class="raw">
<td class="left"></td>
<td class="right"><a href="/archives/commits/200405.mbox/raw/%3c200405061735.i46HZoWQ015835@hula.osafoundation.org%3e" rel="nofollow">View raw message</a></td>
</tr>
</tbody>
</table>
</body>
</html>
u.osafoundation.org> |
Sun, 11 Jan, 15:09 |