def _setup_widgets(self): self.country_combo.prefill(get_countries()) for widget in [self.pages, self.year]: widget.set_adjustment( gtk.Adjustment(lower=0, upper=MAX_INT, step_incr=1)) publishers = self.store.find(BookPublisher) self.publisher_combo.prefill([(p.person.name, p) for p in publishers])
def setup_proxies(self): self._confirming = False self.country.prefill(get_countries()) self._cache_l10n_fields() self._prefill_states() self.city.set_exact_completion() city_completion = self.city.get_completion() city_completion.set_minimum_key_length = 2
def test_get_countries(): countries = get_countries() assert ("Angola", "Angola") in countries assert len(countries) == 253