User Profile

Collapse

Profile Sidebar

Collapse
madpentiste
madpentiste
Last Activity: Jun 14 '15, 10:46 PM
Joined: Jun 14 '15
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Here is a code example:


    Code:
    # http://bytes.com/topic/python/answers/908537-can-window-size-tffiledialog-changed
    # 
    # Code written by madpentiste
    #
    
    '''
    The code herein creates a tkinter dialog "askopenfilename" with window resizing (not supported by default) via linux called from within python
    
    It is an adaptation of two recipes (need to scroll down to find
    ...
    See more | Go to post

    Leave a comment:


  • Yes there is a trick. Complicated, because in fact this very function of tkinter uses the system "Open" window capability, instead of creating a whole dialog window with tkinter widgets.

    So you have to :
    - find which instruction of your operating system resizes windows (mine ins Linux, so it is "wmctrl -r <window title> -e 0,0,0,<width>,< height>"
    - use the os.system() function to pass...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...