diff --git a/pysollib/actions.py b/pysollib/actions.py index 8ea51a87c6..ce7a9d81b6 100644 --- a/pysollib/actions.py +++ b/pysollib/actions.py @@ -555,7 +555,8 @@ def mEditGameComment(self, *args): 'id': game.getGameNumber(format=1)} cc = _("Comments for %(game)s %(id)s:\n\n") % kw c = game.gsaveinfo.comment or cc - d = EditTextDialog(game.top, _("Comments for %(id)s") % kw, text=c) + d = EditTextDialog(game.top, _("Comments for %(id)s") % kw, text=c, + resizable=True) if d.status == 0 and d.button == 0: text = d.text if text.strip() == cc.strip(): @@ -644,13 +645,15 @@ def mPlayerStats(self, *args, **kw): elif mode == 103: header = (_("%(app)s Demo Full log") if demo else _("Full log for %(player)s")) % transkw - d = FullLog_StatsDialog(self.top, header, self.app, player) + d = FullLog_StatsDialog(self.top, header, self.app, player, + resizable=True) gameid = d.selected_game gamenum = d.selected_game_num elif mode == 104: header = (_("%(app)s Demo Session log") if demo else _("Session log for %(player)s")) % transkw - d = SessionLog_StatsDialog(self.top, header, self.app, player) + d = SessionLog_StatsDialog(self.top, header, self.app, player, + resizable=True) gameid = d.selected_game gamenum = d.selected_game_num elif mode == 105: diff --git a/pysollib/tile/tkstats.py b/pysollib/tile/tkstats.py index aa163a553d..9deb657cf9 100644 --- a/pysollib/tile/tkstats.py +++ b/pysollib/tile/tkstats.py @@ -514,6 +514,8 @@ def __init__(self, parent, title, app, player, **kw): title = _('Log') MfxDialog.__init__(self, parent, title, kw.resizable, kw.default) + self.top.wm_minsize(400, 200) + self.selected_game = None self.selected_game_num = None diff --git a/pysollib/ui/tktile/edittextdialog.py b/pysollib/ui/tktile/edittextdialog.py index a336aa33d7..95c802e92c 100644 --- a/pysollib/ui/tktile/edittextdialog.py +++ b/pysollib/ui/tktile/edittextdialog.py @@ -11,6 +11,8 @@ def __init__(self, parent, title, text, **kw): self, parent, title, kw.resizable, kw.default) top_frame, bottom_frame = self.createFrames(kw) self.createBitmaps(top_frame, kw) + self.top.wm_minsize(300, 150) + # self.text_w = tkinter.Text(top_frame, bd=1, relief="sunken", wrap="word", width=64, height=16)