Changeset 7173:33f8a991a4fb in orange


Ignore:
Timestamp:
01/24/11 15:24:58 (3 years ago)
Author:
markotoplak
Branch:
default
Convert:
5f6011cd92433e8024d4fb67d8361cb6c8279a86
Message:

Fixed "guide text" so that it does not crash on Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeCanvas/orngDoc.py

    r7172 r7173  
    3131        self.canvas = QGraphicsScene() 
    3232 
    33         self.guide_text = self.canvas.addSimpleText("Right-click to add widgets", font=QFont("Helvetica", 36)) 
     33        self.guide_text = self.canvas.addSimpleText("Right-click to add widgets") 
    3434        self.guide_text.setBrush(QBrush(QColor(235,235,235))) 
     35        font = QFont() 
     36        font.setStyleHint(QFont.SansSerif) 
     37        font.setPixelSize(36) 
     38        self.guide_text.setFont(font) 
    3539 
    3640        oneItem = self.canvas.addRect(QRectF(0.0, 0.0, 300.0, 300.0)) # inital item so sceneRect always contains QPoint(0, 0) 
Note: See TracChangeset for help on using the changeset viewer.