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" :

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" :

#!/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()
developed with Boa Constructor, of course.
How can one use anything else ?
Take Boa. Accept no substitute.

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.
![]()
And what is your question exactly?
On Wed, Jun 21, 2017 at 1:48 PM, <firefox@firemail.cc> wrote:
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
import wx
from wx.lib.mixins.listctrl import
ListCtrlAutoWidthMixin,CheckListCtrlMixin,TextEditMixinclass
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 wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
my question is:
how can we improve that sys-info app ?
On 21.06.2017 20:24, Igor Korot wrote:
And what is your question exactly?
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.
On Wed, Jun 21, 2017 at 3:25 PM, Fox <firefox@firemail.cc> wrote:
On 21.06.2017 20:24, Igor Korot wrote:
--
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 wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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.