MCPcopy Create free account
hub / github.com/crossuo/crossuo / tkinter2Present

Function tkinter2Present

external/tinyfiledialogs.c:4033–4052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4031
4032
4033static int tkinter2Present(void)
4034{
4035 static int lTkinter2Present = -1 ;
4036 char lPythonCommand[256];
4037 char lPythonParams[256] =
4038"-S -c \"try:\n\timport Tkinter;\nexcept:\n\tprint 0;\"";
4039
4040
4041 if ( lTkinter2Present < 0 )
4042 {
4043 lTkinter2Present = 0 ;
4044 if ( python2Present() )
4045 {
4046 sprintf( lPythonCommand , "%s %s" , gPython2Name , lPythonParams ) ;
4047 lTkinter2Present = tryCommand(lPythonCommand) ;
4048 }
4049 if (tinyfd_verbose) printf("lTkinter2Present %d\n", lTkinter2Present) ;
4050 }
4051 return lTkinter2Present && graphicMode() && !(isDarwin() && getenv("SSH_TTY") );
4052}
4053
4054
4055static int tkinter3Present(void)

Callers 1

tinyfiledialogs.cFile · 0.85

Calls 4

python2PresentFunction · 0.85
tryCommandFunction · 0.85
graphicModeFunction · 0.85
isDarwinFunction · 0.85

Tested by

no test coverage detected