More Pinephone tweaks
This commit is contained in:
parent
1f19859d1c
commit
aa7207e145
5
main.py
5
main.py
|
@ -23,6 +23,11 @@ class Main:
|
|||
for row in ["First Button", "Second", "Third"]:
|
||||
self.add_button(row)
|
||||
|
||||
# Note: the UI size request is 360x720, same resolution as
|
||||
# the Pinephone screen, but this is too big for the window to
|
||||
# be. As workaround, we reset the size request very small and maximize
|
||||
# the window.
|
||||
self.mw.set_size_request(360, 200)
|
||||
self.mw.maximize()
|
||||
self.mw.show_all()
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@
|
|||
</object>
|
||||
<object class="GtkApplicationWindow" id="main_window">
|
||||
<property name="width_request">360</property>
|
||||
<property name="height_request">550</property>
|
||||
<property name="height_request">720</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="show_menubar">False</property>
|
||||
<signal name="destroy" handler="on_main_window_destroy" swapped="no"/>
|
||||
|
|
Loading…
Reference in New Issue
Block a user