~ubuntu-branches/ubuntu/utopic/dogtail/utopic

« back to all changes in this revision

Viewing changes to examples/evolution-test-composing-html.py

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-12-21 13:33:47 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20061221133347-xo9jg11afp5plcka
Tags: upstream-0.6.1
ImportĀ upstreamĀ versionĀ 0.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
# Dogtail demo script
3
 
__author__ = 'David Malcolm <dmalcolm@redhat.com>'
4
 
 
5
 
# Test composing (and sending) an HTML email
6
 
 
7
 
# Under construction.  Doesn't yet work
8
 
 
9
 
# FIXME:  partially rewrite; this would be a great example of a script using both APIs;  the typing stuff would work better with the procedural interface
10
 
 
11
 
from dogtail.apps.wrappers.evolution import *
12
 
 
13
 
evo = EvolutionApp()
14
 
composer = evo.composeEmail()
15
 
composer.to = "dmalcolm@redhat.com"
16
 
composer.subject = "Yarrrrrr!!!"
17
 
composer.setHtml(True)
18
 
composer.setHeader(1)
19
 
composer.typeText("Leveraging Synergies\n\n")
20
 
composer.setBulletedList()
21
 
composer.typeText("pirates!\n")
22
 
composer.typeText("zombies!\n")
23
 
composer.typeText("zombie pirates!")
24
 
 
25
 
#composer.testUndoRedo()
26
 
# unfortunately, undo doesn't seem to desensitize correctly in Evolution 2.4
27
 
 
28
 
composer.send()