~dpm/qreator/snap

« back to all changes in this revision

Viewing changes to qreator/QreatorWindow.py

  • Committer: Stefan Schwarzburg
  • Date: 2012-06-02 08:59:55 UTC
  • mto: This revision was merged to the branch mainline in revision 86.
  • Revision ID: stefan.schwarzburg@googlemail.com-20120602085955-ty2lf0sc0gosbzkr
A basic vcard implementation is added to qreator. 
See: http://en.wikipedia.org/wiki/VCard

This adds the python-vobject dependency. 

Current supported vcard entry types are:
First name, last name, fullname, email, phone, address, title, url

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
        from qrcodes.QRCodeLocation import QRCodeLocation
84
84
        from qrcodes.QRCodeWifi import QRCodeWifi
85
85
        from qrcodes.QRCodeSoftwareCenterApp import QRCodeSoftwareCenterApp
 
86
        from qrcodes.QRCodeVCard import QRCodeVCard
86
87
 
87
88
        self.qr_types = [
88
89
            QRCodeURL(self.update_qr_code, 'url.png', _('URL'), 0),
92
93
            QRCodeWifi(self.update_qr_code, 'wifi.png', _('Wifi network'), 3),
93
94
            QRCodeSoftwareCenterApp(self.update_qr_code, 'softwarecentre.png',
94
95
                _('Ubuntu Software Center app'), 4),
 
96
            QRCodeVCard(self.update_qr_code, 'vcard.png', _('VCard'), 5),
95
97
        ]
96
98
 
97
99
        self.qr_types_store = Gtk.ListStore(str, GdkPixbuf.Pixbuf, int)