<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div>Hi all.</div>
<div> </div>
<div> </div>
<div>I am working on a little helper for my job management system to insert jobs into it using a PyQt GUI that should be usable on both windows and linux.</div>
<div> </div>
<div>I came over a rather odd behavior for the QFileDialog.getOpenFileNames method when running that helper under linux. Selecting a file within the dialog immediately closes the dialog returning a list containing exactly that one and only selected file. It
feels like selecting one file and immediately clicking the OK Button afterwards. There seems to be no way to select more than one file using <Ctrl>+LeftMouseClick. However clicking in an area without files and selecting all using the accelerator <Ctrl>+<A>
shows the expected behavior. All files get selected and I am able to commit using the OK-Button.</div>
<div> </div>
<div>The helper on windows shows the expected behavior in all scenarios.</div>
<div> </div>
<div>The behavior is the same for the getOpenFileName variant of the method.</div>
<div> </div>
<div>Here is the code snippet I am using:</div>
<div> </div>
<div>jobfilenames=QFileDialog.getOpenFileNames(self,</div>
<div> "Choose File(s)",</div>
<div> QDir.currentPath(),</div>
<div> “Python files (*.py)”</div>
<div> )</div>
<div> </div>
<div> for jobfilename in jobfilenames:</div>
<div> print jobfilename</div>
<div> </div>
<div>What am I doing wrong here?</div>
<div> </div>
<div>Best regards</div>
<div> </div>
<div>Jens</div>
<div> </div>
<div> </div>
</font>
</body>
</html>