Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1613 connectés 

  FORUM HardWare.fr
  Programmation
  Perl

  Interface graphique

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Interface graphique

n°274545
Toomslegra​nd
Posté le 21-12-2002 à 18:27:58  profilanswer
 

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

mood
Publicité
Posté le 21-12-2002 à 18:27:58  profilanswer
 

n°274596
pospos
Posté le 21-12-2002 à 21:19:44  profilanswer
 

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

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Perl

  Interface graphique

 

Sujets relatifs
Quoi pour programmer un logiciel avec une interface graphique ss linuxInterface graphique en mode texte
[C]Interface graphique, sonore, forme geometrique et troadéProbleme d interface graphique
interface graphique, gestion souris,gestion imprimante reseau[C] faire des interface graphique
Interface Graphique avec du C sous Windows Gratuitprogrammation d'interface graphique sous linux
Interface graphique ???Interface graphique ???
Plus de sujets relatifs à : Interface graphique


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR