Interface graphique

Interface graphique - Perl - Programmation

Marsh Posté le 21-12-2002 à 18:27:58    

J'aimerais savoir commencer placer les objets ou on veut avec la méthodes TK? et comment fait on pour redimensionner une fenétre principal?
 
Merci

Reply

Marsh Posté le 21-12-2002 à 18:27:58   

Reply

Marsh Posté le 21-12-2002 à 21:19:44    

Toomslegrand a écrit :

J'aimerais savoir commencer placer les objets ou on veut avec la méthodes TK? et comment fait on pour redimensionner une fenétre principal?
 
Merci


 
pour placer un widget ou tu veux à l'interieur de ta fenetre, utilise la methode "place" sur ton widget
 
mais je pense que c'est de la fenetre elle-meme dont tu parlen non?
pour palcer ta fenetre ou tu veux, et la redimentionner, il faut utiliser la methode "gemetry" sur ta toplevel window:
 

Citation :


$toplevel->geometry(?newGeometry?)
 
 
If newGeometry is specified, then the geometry of $toplevel is changed and an empty string is returned. Otherwise the current geometry for $toplevel is returned (this is the most recent geometry specified either by manual resizing or in a geometry method). NewGeometry has the form =widthxheight+-x+-y, where any of =, widthxheight, or +-x+-y may be omitted. Width and height are positive integers specifying the desired dimensions of $toplevel. If $toplevel is gridded (see GRIDDED GEOMETRY MANAGEMENT below) then the dimensions are specified in grid units; otherwise they are specified in pixel units. X and y specify the desired location of $toplevel on the screen, in pixels. If x is preceded by +, it specifies the number of pixels between the left edge of the screen and the left edge of $toplevel's border; if preceded by - then x specifies the number of pixels between the right edge of the screen and the right edge of $toplevel's border. If y is preceded by + then it specifies the number of pixels between the top of the screen and the top of $toplevel's border; if y is preceded by - then it specifies the number of pixels between the bottom of $toplevel's border and the bottom of the screen. If newGeometry is specified as an empty string then any existing user-specified geometry for $toplevel is cancelled, and the window will revert to the size requested internally by its widgets.


Message édité par pospos le 21-12-2002 à 21:20:04
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed