Posts

Python Tkinter Layout Management with Grids -

for few days, i'm trying set simple application tkinter , have problems choose between pack, grid frames , widgets. here mockup of app. decided delete 2 buttons "générer" don't pay attention that. http://www.gilawhost.com/images/taajvonq.png i have 3 frames : framematrix (for checkboxes), frameimage (for flashcode) , framelink bottom part. those frames implemented grids. exemple link part (bottom), have : labellink = labelframe(framelink, text='mini lien', padx=5, pady=5) labelminilien = label(framelink, text = "http://minilien.fr/").grid(row=0, column=0) entrylink = entry(framelink, text=self.flashcode.lien).grid(row=0, column=1) buttonlink = button(framelink, text="suivre le lien").grid(row=0, column=2) however, don't know how put 3 frames together. main frame is self.frame=frame(root) and tried set frames below framematrix=frame(self.frame).grid(row=0, column=0) frameimage=frame(self.frame).grid(row=0, column=1)...

python - pip: Could not find an activated virtualenv (required) -

i trying instal virtualenv and/or virtualenvwrapper on mac osx 10.8.3 i have been fighting python last 2 days. able install python 2.7.4 using brew. before had virtualenv installed using easy_install. tried uninstall it, trying computer in same situation 1 of colleagues. maybe uninstalled success, maybe not. don't know how test it. supposed install virtualenv using - pip install virtualenv but gives me - could not find activated virtualenv (required). pip install virtualenvwrapper gives same output. also variable: pip_respect_virtualenv null: echo $pip_respect_virtualenv how can solve issue? thanks open ~/.bashrc file , see if line there - export pip_require_virtualenv=true it might causing trouble. if it's there, change false , run - source ~/.bashrc if not, run export pip_require_virtualenv=false terminal.

tcl - traversing a ttk::treeview in Tk -

is there simple way traverse items of tcl/tk ttk::treview if items in listbox? example: | |-- b visit | | |-- c order | | |-- d ----> b c d e f g | e v |-- f |-- g i understand correspond traversing tree in preorder , is, in fact, current solution. since have complete tree maximum depth n, can like: foreach lev1 [.tree children {}] { do_stuff $lev1 foreach lev2 [.tree children $lev1] { do_stuff$lev2 foreach lev3 [.tree children $lev2] { do_stuff $lev3 .... } } } but looking easier way it. i have considered adding tag (say mytag ) each node , use: .tree tag has mytag list of nodes. problem that, afaik, resulting order not guaranteed , may end different type of visit. recursive traversal ought trick you. along lines of proc traverse {item} { do_stuff $item foreach [.tree children $item...

boolean - return type of bool function -

what return type of sort of bool function...... know return type either true of false seems complicated when have got this.. bool mypredicate (int i, int j) { return (i==j); } this bool function used in library function called equal...... example is.... bool compare(int a, int b){ return a<b; } so perspective here return type of these bool function.when goes true & false.... your functions mypredicate , compare merely thin wrappers on binary operators == , < . operators functions: take number of arguments of given type, , return result of given type. for example, imagine function bool operator==(int a, int b) following specification: if a equals b return true otherwise return false and function bool operator<(int a, int b) following specification: if a strictly lesser b return true otherwise return false . then write: bool mypredicate (int i, int j) { return operator==(i, j); } bool compare(int a, int b){ return oper...

symfony - SELECT etat, count( * ) AS 'nombre' from commande GROUP BY etat; -

how transform query dql : select etat, count( * ) 'nombre' commande group etat; please try select c,count(c.id) nombre acmebundle:commande c group c.etat where clause not included. should have commande entity. return fields commande entity , count. can rectify needs

c# - Exception when I try to create Database on my test, using TeamCity for CI -

in 1 of test need create sql express database , populate it. it's run fine on machine when teamcity tries run same test throws following exception: test(s) failed. system.reflection.targetinvocationexception : exception has been thrown target of invocation. ----> system.data.sqlclient.sqlexception : create database permission denied in database 'master'. what causing this? in enterprise manager-> data base richt click on master db select properties , add permission

javascript - checklist of creating phonegap project- Can SomeOne add More elements -

for updated list pls see url http://www.aurigait.com/blog/checklist-of-creating-phonegap-project/ we doing core html dev. jquery mobile can used platform wide range device support & ease in making forms tradeoff of performance on lower-end devices. ui transitions not supported in various devices either can selectively apply transitions. ios , android navigation kept same or different since button navigation in available in android language / audio / tectical support analytics / notifications , intensity [notificatioin pages history] / adwords / geolocation based resposive layout resolution breakup we supporting resolutions of 320*480 , above. (for can have ui designs 320*480 (mobile portrait) / 768*1024 (tablet portrait) / 1280*720 (desktop) updates & news event calender & reminders user feedback forms swipe gestures sharing of content application single page applications [single page layouts implement those. (follow examples of paytm / asana / gmail)...