contest: guess the "lines of code" amount from an app screenshot

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

contest: guess the "lines of code" amount from an app screenshot

firefox

OK, everyone paste a screenshot and people must guess how many lines of
code were necessary.


I begin with the attached screenshot for the app "filofax" :


--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

filofax.png (35K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

sys info GUI app

firefox
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
import wx
from wx.lib.mixins.listctrl import
ListCtrlAutoWidthMixin,CheckListCtrlMixin,TextEditMixin


class
AutoBreit1(wx.ListCtrl,ListCtrlAutoWidthMixin,CheckListCtrlMixin,TextEditMixin):
  def __init__(self,parent):
   wx.ListCtrl.__init__(self,parent,-1,style=wx.LC_REPORT)
   ListCtrlAutoWidthMixin.__init__(self)
   TextEditMixin.__init__(self)
   CheckListCtrlMixin.__init__(self)
class
AutoBreit2(wx.ListCtrl,CheckListCtrlMixin,ListCtrlAutoWidthMixin,TextEditMixin):
  def __init__(self,parent):
   wx.ListCtrl.__init__(self,parent,-1,style=wx.LC_REPORT|wx.SUNKEN_BORDER)
   TextEditMixin.__init__(self)
   CheckListCtrlMixin.__init__(self)
   ListCtrlAutoWidthMixin.__init__(self)
   self.Bind(wx.EVT_LIST_BEGIN_LABEL_EDIT,self.onBeginLabelEdit)
  def onBeginLabelEdit(self,event):
   e2=event.GetColumn()
   if e2!=0:
    e=self.SetThemeEnabled(True)
    e=self.AddChild
    abs
    event.Skip()
   else:
    event.Veto()



class fen(wx.Frame):
  def __init__(self,parent,id,title):
   wx.Frame.__init__(self,parent,id,title,size=(640,500))
   kastn =wx.BoxSizer(wx.HORIZONTAL)
   paneele =wx.Panel(self,-1)
   self.list=AutoBreit2(paneele)
   self.list.InsertColumn(0,'--',width=40)
   self.list.InsertColumn(1,'variable',width=250)
   self.list.InsertColumn(2,'value read',wx.LIST_FORMAT_RIGHT,50)
   maxii=2147483647
   kastn.Add(self.list,1,wx.EXPAND)
   paneele.SetSizer(kastn)
   self.Centre()
   self.Show(True)



def main():
  e=1
  app=wx.App()
  f=fen(None,-1,'sys info    ')
  e=app.AppName
  t=app.GetTraits()
  sp=wx.StandardPaths.Get()
  e=sp.GetDataDir()


  index=f.list.InsertStringItem(3," ")
  e= f.list.SetStringItem(index,1," app.AppName ")
  e= f.list.SetStringItem(index,2,str(app.AppName))
  index=f.list.InsertStringItem(2," ")
  e= f.list.SetStringItem(index,1," frame GetName ")
  e= f.list.SetStringItem(index,2,str(f.GetName()))
  index=f.list.InsertStringItem(4," ")
  e= f.list.SetStringItem(index,1," GetDataDir ")
  e= f.list.SetStringItem(index,2,str(sp.GetDataDir()))
  index=f.list.InsertStringItem(5," ")
  e= f.list.SetStringItem(index,1," GetInstallPrefix ")
  e= f.list.SetStringItem(index,2,str(sp.GetInstallPrefix()))
  index=f.list.InsertStringItem(123," ")
  e= f.list.SetStringItem(index,1," GetExecutablePath ")
  e= f.list.SetStringItem(index,2,str(sp.GetExecutablePath()))
  index=f.list.InsertStringItem(6," ")
  e= f.list.SetStringItem(index,1," GetLocalizedResourcesDir ")
  e=
f.list.SetStringItem(index,2,str(sp.GetLocalizedResourcesDir(lang="de")))
  index=f.list.InsertStringItem(7," ")
  e= f.list.SetStringItem(index,1," GetUserConfigDir ")
  e= f.list.SetStringItem(index,2,str(sp.GetUserConfigDir()))
  index=f.list.InsertStringItem(8," ")
  e= f.list.SetStringItem(index,1," GetUserLocalDataDir                   ")
  e= f.list.SetStringItem(index,2,str(sp.GetUserLocalDataDir()))
  index=f.list.InsertStringItem(9," ")
  e= f.list.SetStringItem(index,1," GetInstallPrefix
     ")
  e= f.list.SetStringItem(index,2,str(sp.GetInstallPrefix()))
  index=f.list.InsertStringItem(10," ")
  e= f.list.SetStringItem(index,1," UsesAppInfo    info=1
      ")
  e= f.list.SetStringItem(index,2,str("sp.UsesAppInfo(info=1)"))
  index=f.list.InsertStringItem(11," ")
  e= f.list.SetStringItem(index,1," GetPluginsDir                         ")
  e= f.list.SetStringItem(index,2,str(sp.GetPluginsDir()))
  index=f.list.InsertStringItem(12," ")
  e= f.list.SetStringItem(index,1,"                          ")
  e= f.list.SetStringItem(index,2,str())
  index=f.list.InsertStringItem(13," ")
  e= f.list.SetStringItem(index,1,"                          ")
  e= f.list.SetStringItem(index,2,str())
  index=f.list.InsertStringItem(14," ")
  e= f.list.SetStringItem(index,1,"                          ")
  e= f.list.SetStringItem(index,2,str())
  index=f.list.InsertStringItem(15," ")
  e= f.list.SetStringItem(index,1,"                          ")
  e= f.list.SetStringItem(index,2,str())



  e=f.CreateStatusBar()
  e=f.CreateToolBar()
  tt=wx.ToolTip('read system info at run time to see  what went wrong')
  e=f.SetToolTip(tt)
  e=f.StatusBar.SetStatusText("all relevant app traits were retrieved
now. ")
  e=f.GetName()
  app.MainLoop()



if __name__=='__main__':
  main()

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

sys info GUI app , ss

firefox
developed with Boa Constructor, of course.


How can one use anything else ?

Take Boa. Accept no substitute.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

screenshot-traits.jpg (61K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

mods for sysinfo

firefox
In reply to this post by firefox

>   index=f.list.InsertStringItem(11," ")
>   e= f.list.SetStringItem(index,1,"      GetPluginsDir  ")
>   e= f.list.SetStringItem(index,2,str(sp.GetPluginsDir()))

>   index=f.list.InsertStringItem(12,"  your addition     ")
>   e= f.list.SetStringItem(index,1,"                     ")
>   e= f.list.SetStringItem(index,2,str( " fill me in "   ))




feel free to add cool stuff to make it a kick butt tool to be integrated
into Boa and whatever else.


;-)

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: sys info GUI app

Igor Korot
In reply to this post by firefox
And what is your question exactly?

On Wed, Jun 21, 2017 at 1:48 PM,  <[hidden email]> wrote:

> #!/usr/bin/env python2
> # -*- coding: utf-8 -*-
> import sys
> import wx
> from wx.lib.mixins.listctrl import
> ListCtrlAutoWidthMixin,CheckListCtrlMixin,TextEditMixin
>
>
> class
> AutoBreit1(wx.ListCtrl,ListCtrlAutoWidthMixin,CheckListCtrlMixin,TextEditMixin):
>  def __init__(self,parent):
>   wx.ListCtrl.__init__(self,parent,-1,style=wx.LC_REPORT)
>   ListCtrlAutoWidthMixin.__init__(self)
>   TextEditMixin.__init__(self)
>   CheckListCtrlMixin.__init__(self)
> class
> AutoBreit2(wx.ListCtrl,CheckListCtrlMixin,ListCtrlAutoWidthMixin,TextEditMixin):
>  def __init__(self,parent):
>   wx.ListCtrl.__init__(self,parent,-1,style=wx.LC_REPORT|wx.SUNKEN_BORDER)
>   TextEditMixin.__init__(self)
>   CheckListCtrlMixin.__init__(self)
>   ListCtrlAutoWidthMixin.__init__(self)
>   self.Bind(wx.EVT_LIST_BEGIN_LABEL_EDIT,self.onBeginLabelEdit)
>  def onBeginLabelEdit(self,event):
>   e2=event.GetColumn()
>   if e2!=0:
>    e=self.SetThemeEnabled(True)
>    e=self.AddChild
>    abs
>    event.Skip()
>   else:
>    event.Veto()
>
>
>
> class fen(wx.Frame):
>  def __init__(self,parent,id,title):
>   wx.Frame.__init__(self,parent,id,title,size=(640,500))
>   kastn =wx.BoxSizer(wx.HORIZONTAL)
>   paneele =wx.Panel(self,-1)
>   self.list=AutoBreit2(paneele)
>   self.list.InsertColumn(0,'--',width=40)
>   self.list.InsertColumn(1,'variable',width=250)
>   self.list.InsertColumn(2,'value read',wx.LIST_FORMAT_RIGHT,50)
>   maxii=2147483647
>   kastn.Add(self.list,1,wx.EXPAND)
>   paneele.SetSizer(kastn)
>   self.Centre()
>   self.Show(True)
>
>
>
> def main():
>  e=1
>  app=wx.App()
>  f=fen(None,-1,'sys info    ')
>  e=app.AppName
>  t=app.GetTraits()
>  sp=wx.StandardPaths.Get()
>  e=sp.GetDataDir()
>
>
>  index=f.list.InsertStringItem(3," ")
>  e= f.list.SetStringItem(index,1," app.AppName ")
>  e= f.list.SetStringItem(index,2,str(app.AppName))
>  index=f.list.InsertStringItem(2," ")
>  e= f.list.SetStringItem(index,1," frame GetName ")
>  e= f.list.SetStringItem(index,2,str(f.GetName()))
>  index=f.list.InsertStringItem(4," ")
>  e= f.list.SetStringItem(index,1," GetDataDir ")
>  e= f.list.SetStringItem(index,2,str(sp.GetDataDir()))
>  index=f.list.InsertStringItem(5," ")
>  e= f.list.SetStringItem(index,1," GetInstallPrefix ")
>  e= f.list.SetStringItem(index,2,str(sp.GetInstallPrefix()))
>  index=f.list.InsertStringItem(123," ")
>  e= f.list.SetStringItem(index,1," GetExecutablePath ")
>  e= f.list.SetStringItem(index,2,str(sp.GetExecutablePath()))
>  index=f.list.InsertStringItem(6," ")
>  e= f.list.SetStringItem(index,1," GetLocalizedResourcesDir ")
>  e=
> f.list.SetStringItem(index,2,str(sp.GetLocalizedResourcesDir(lang="de")))
>  index=f.list.InsertStringItem(7," ")
>  e= f.list.SetStringItem(index,1," GetUserConfigDir ")
>  e= f.list.SetStringItem(index,2,str(sp.GetUserConfigDir()))
>  index=f.list.InsertStringItem(8," ")
>  e= f.list.SetStringItem(index,1," GetUserLocalDataDir                   ")
>  e= f.list.SetStringItem(index,2,str(sp.GetUserLocalDataDir()))
>  index=f.list.InsertStringItem(9," ")
>  e= f.list.SetStringItem(index,1," GetInstallPrefix     ")
>  e= f.list.SetStringItem(index,2,str(sp.GetInstallPrefix()))
>  index=f.list.InsertStringItem(10," ")
>  e= f.list.SetStringItem(index,1," UsesAppInfo    info=1      ")
>  e= f.list.SetStringItem(index,2,str("sp.UsesAppInfo(info=1)"))
>  index=f.list.InsertStringItem(11," ")
>  e= f.list.SetStringItem(index,1," GetPluginsDir                         ")
>  e= f.list.SetStringItem(index,2,str(sp.GetPluginsDir()))
>  index=f.list.InsertStringItem(12," ")
>  e= f.list.SetStringItem(index,1,"                          ")
>  e= f.list.SetStringItem(index,2,str())
>  index=f.list.InsertStringItem(13," ")
>  e= f.list.SetStringItem(index,1,"                          ")
>  e= f.list.SetStringItem(index,2,str())
>  index=f.list.InsertStringItem(14," ")
>  e= f.list.SetStringItem(index,1,"                          ")
>  e= f.list.SetStringItem(index,2,str())
>  index=f.list.InsertStringItem(15," ")
>  e= f.list.SetStringItem(index,1,"                          ")
>  e= f.list.SetStringItem(index,2,str())
>
>
>
>  e=f.CreateStatusBar()
>  e=f.CreateToolBar()
>  tt=wx.ToolTip('read system info at run time to see  what went wrong')
>  e=f.SetToolTip(tt)
>  e=f.StatusBar.SetStatusText("all relevant app traits were retrieved now. ")
>  e=f.GetName()
>  app.MainLoop()
>
>
>
> if __name__=='__main__':
>  main()
>
> --
> You received this message because you are subscribed to the Google Groups
> "wxPython-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [hidden email].
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

improve sys info GUI app

firefox
On 21.06.2017 20:24, Igor Korot wrote:
> And what is your question exactly?


my question is:


how can we improve that sys-info app ?

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: improve sys info GUI app

Igor Korot
On Wed, Jun 21, 2017 at 3:25 PM, Fox <[hidden email]> wrote:

> On 21.06.2017 20:24, Igor Korot wrote:
>>
>> And what is your question exactly?
>
>
>
> my question is:
>
>
> how can we improve that sys-info app ?

Good.
We finally getting somewhere... ;-)

Now I'm curious - with all fuss against wxPython, why are you still here?
And why do you want to improve the wxPytrhon-based code?

Thank you.

>
> --
> You received this message because you are subscribed to the Google Groups
> "wxPython-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [hidden email].
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: improve sys info GUI app

firefox

>>> And what is your question exactly?
>>
>>
>>
>> my question is:
>>
>>
>> how can we improve that sys-info app ?
>
> Good.
> We finally getting somewhere... ;-)
>
> Now I'm curious - with all fuss against wxPython, why are you still here?
> And why do you want to improve the wxPytrhon-based code?


just when I am a truther about "Monkey Studio" this does me not turn
into an "anti-WX person".


this wxpy stuff is not too bad, so to make things easier we need good
sysinfo GUI tools, which work straight away.

the "app traits" alone are not quite so significant, I believe.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...