Change font size in elementary.Entry (was: font size in other window managers)
Laszlo KREKACS
laszlo.krekacs.list at gmail.com
Thu Jun 25 12:58:45 CEST 2009
> So you need to digg a bit into elementary to see how it calculates the
> default font size.
Ok, we should inject the code into msgs2.py line 125:
textbox.size_hint_weight_set(1.0, 1.0)
I tried the following things:
textbox.size_hint_weight_set(15.0, 15.0)
textbox.size_hint_request_set(30.0,30.0)
textbox.size_hint_min_set(30.0,30.0)
textbox.size_set(60.0,60.0)
None of them affects the appearance, the fonts are the same as before,
and the sizes too.
Im completely new into elementary, but it *SHOULD* work.
Can somebody help me out, who know a bit more of elementary?
The Entry object has the following methods:
['__class__',
'__delattr__',
'__doc__',
'__format__',
'__getattribute__',
'__hash__',
'__init__',
'__new__',
'__pyx_vtable__',
'__reduce__',
'__reduce_ex__',
'__repr__',
'__setattr__',
'__sizeof__',
'__str__',
'__subclasshook__',
'_callback_add',
'_callback_remove',
'_get_obj_addr',
'_set_common_params',
'_set_evas',
'above',
'above_get',
'activated',
'anchor_clicked',
'anti_alias',
'anti_alias_get',
'anti_alias_set',
'below',
'below_get',
'bottom_get',
'bottom_left',
'bottom_left_get',
'bottom_left_set',
'bottom_right',
'bottom_right_get',
'bottom_right_set',
'center',
'center_get',
'center_set',
'changed',
'clip',
'clip_get',
'clip_set',
'clip_unset',
'clipees',
'clipees_get',
'color',
'color_get',
'color_interpolation',
'color_interpolation_get',
'color_interpolation_set',
'color_set',
'cursor_changed',
'data',
'delete',
'editable_set',
'entry_get',
'entry_insert',
'entry_set',
'evas',
'evas_get',
'event_callback_add',
'event_callback_del',
'focus',
'focus_get',
'focus_set',
'geometry',
'geometry_get',
'geometry_set',
'hide',
'is_deleted',
'layer',
'layer_get',
'layer_set',
'line_wrap_set',
'lower',
'markup_to_utf8',
'move',
'move_relative',
'name',
'name_get',
'name_set',
'on_changed_size_hints_add',
'on_changed_size_hints_del',
'on_del_add',
'on_del_del',
'on_focus_in_add',
'on_focus_in_del',
'on_focus_out_add',
'on_focus_out_del',
'on_free_add',
'on_free_del',
'on_hide_add',
'on_hide_del',
'on_hold_add',
'on_hold_del',
'on_key_down_add',
'on_key_down_del',
'on_key_up_add',
'on_key_up_del',
'on_mouse_down_add',
'on_mouse_down_del',
'on_mouse_in_add',
'on_mouse_in_del',
'on_mouse_move_add',
'on_mouse_move_del',
'on_mouse_out_add',
'on_mouse_out_del',
'on_mouse_up_add',
'on_mouse_up_del',
'on_mouse_wheel_add',
'on_mouse_wheel_del',
'on_move_add',
'on_move_del',
'on_resize_add',
'on_resize_del',
'on_restack_add',
'on_restack_del',
'on_show_add',
'on_show_del',
'parent',
'parent_get',
'pass_events',
'pass_events_get',
'pass_events_set',
'password_set',
'pointer_mode',
'pointer_mode_get',
'pointer_mode_set',
'pos',
'pos_get',
'pos_set',
'propagate_events',
'propagate_events_get',
'propagate_events_set',
'raise_',
'rect',
'render_op',
'render_op_get',
'render_op_set',
'repeat_events',
'repeat_events_get',
'repeat_events_set',
'resize',
'scale_get',
'scale_set',
'select_all',
'select_none',
'selection_changed',
'selection_cleared',
'selection_copy',
'selection_cut',
'selection_get',
'selection_paste',
'selection_start',
'show',
'single_line_set',
'size',
'size_get',
'size_hint_align',
'size_hint_align_get',
'size_hint_align_set',
'size_hint_aspect',
'size_hint_aspect_get',
'size_hint_aspect_set',
'size_hint_max',
'size_hint_max_get',
'size_hint_max_set',
'size_hint_min',
'size_hint_min_get',
'size_hint_min_set',
'size_hint_padding',
'size_hint_padding_get',
'size_hint_padding_set',
'size_hint_request',
'size_hint_request_get',
'size_hint_request_set',
'size_hint_weight',
'size_hint_weight_get',
'size_hint_weight_set',
'size_set',
'stack_above',
'stack_below',
'top_get',
'top_left',
'top_left_get',
'top_left_set',
'top_right',
'top_right_get',
'top_right_set',
'type',
'type_get',
'utf8_to_markup',
'visible',
'visible_get',
'visible_set']
Best regards,
Laszlo
More information about the community
mailing list