~thomas-deruyter-3/qreator/qreator

« back to all changes in this revision

Viewing changes to qreator/QreatorWindow.py

  • Committer: David Planella
  • Date: 2012-01-22 10:06:50 UTC
  • Revision ID: david.planella@ubuntu.com-20120122100650-7pffhf1ysr4zzgqs
Started playing with the Open Street Map widget, but it seems to crash on Gtk+ 3

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
from qreator.AboutQreatorDialog import AboutQreatorDialog
19
19
from qreator.PreferencesQreatorDialog import PreferencesQreatorDialog
20
20
 
 
21
#import osmgpsmap
21
22
from QRCode import QRCode as QRCode
22
23
 
23
24
COL_TEXT = 0
29
30
PAGE_SETTINGS = 2
30
31
PAGE_ABOUT = 3
31
32
PAGE_URL = 4
 
33
PAGE_GEO = 5
32
34
 
33
35
 
34
36
class BarcodeSize(object):
58
60
 
59
61
        self.ui.notebook1.set_show_tabs(False)
60
62
        self.ui.entry1.connect('changed', self.on_entry1_changed)
 
63
        
 
64
        # Map loading
 
65
        box = self.ui.box2
 
66
        #self.osm = osmgpsmap.GpsMap()
 
67
        #self.osm.layer_add(osmgpsmap.GpsMapOsd(show_dpad=True, show_zoom=True))
 
68
        #box.pack_start(self.osm)
61
69
 
62
70
    def on_toolbuttonHome_clicked(self, widget, data=None):
63
71
        self.ui.notebook1.set_current_page(PAGE_HOME)
72
80
        self.ui.notebook1.set_current_page(PAGE_ABOUT)
73
81
 
74
82
    def on_iconview1_item_activated(self, widget, item):
75
 
        self.ui.notebook1.set_current_page(PAGE_URL)
 
83
        self.ui.notebook1.set_current_page(PAGE_GEO)
76
84
        #model = widget.get_model()
77
85
        #id = model[item][COL_ID]
78
86