コード例 #1
0
ファイル: pdfdc.py プロジェクト: Splawik/pytigon-lib
 def draw_rotated_text(self, x, y, txt, angle):
     (w, h, d, e) = self.dc_info.get_extents(txt)
     BaseDc.draw_rotated_text(self, x, y, txt)
コード例 #2
0
ファイル: wxdc.py プロジェクト: Splawik/pytigon-lib
 def draw_rotated_text(self, x, y, txt, angle):
     (w, h, d, e) = self.dc.GetFullTextExtent(txt)
     dy_up = h - d
     self.dc.DrawRotatedText(txt, x * self.scale + dy_up, y * self.scale,
                             360 - angle)
     BaseDc.draw_rotated_text(self, x, y, txt)